Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A suggestion on custom output name #42

Open
jackysee opened this issue Mar 2, 2012 · 0 comments
Open

A suggestion on custom output name #42

jackysee opened this issue Mar 2, 2012 · 0 comments

Comments

@jackysee
Copy link

jackysee commented Mar 2, 2012

I think a custom name would be useful to manage js output location.

e.g. In a main.html

<html>
<head>
           #{greenscript.js 'jquery < base', name:'head' /}
</head>
<body>
        #{doLayout /}
        #{greenscript.js name:'bottom' /}
 </body>
 </html>  

Then in somepage.html

#{extends 'main.html' /}

#{greenscript.js 'gallery' , name:'head' /}  
#{greenscript.js name:'head'}
       //Some other js I would like to concat to the head script
#{/greenscript.js}

#{greenscript.js 'libs/placeholder',  name:'bottom' /}

 <!-- content  start -->

Inline script or file with same name will be concatenated to one and the appear to the location in main.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant