greenlaw110/greenscript — Issue #42: A suggestion on custom output name
Author: jackysee
Created: 2012-03-02 04:20:05+00:00
State: open

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

e.g. In a main.html

#{greenscript.js 'jquery < base', name:'head' /}

#{doLayout /}
#{greenscript.js name:'bottom' /}

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' /}

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