Possibility to compile without subdirs
justgook opened this issue · 3 comments
For example my structure is:
/app
jade_assets/
index.jade
...
i wona place compiled jade template (index.jade), to root of public folder (or to assets/)
would be nice to add possibility to set some config to enable it or create some default (or configurable) folder for it.
on of solution would be:
static_jade:
extension: ".jade"
path: [
/app(\/|\\)docs/
,
dir: /app(\/|\\)jade_assets/
asset: "assets"
]
for now i need to create something like:
static_jade:
extension: ".jade"
path: /public/
asset: ""
one more possibility to create some filter to auto-compile all files *.static.jade
from assets folder to html files
Sorry @justgook but I don't think I understood your proposal or the level of the directory structure, my fault, so try to explain.
You have something like:
root_brunch_project/
| app/
| | app_index.jade
| jade_assets/
| project_index.jade
If this is correct, the project_index.jade
is never taken into account by brunch, so the plugin cannot know it.
On the other hand you should find app_index.html
(from root_brunch_project/app/app_index.jade) in the root of the public folder.
tnx... ill already use this structure.. so u can close prefix..
my idea was to place file in app/assets, but no i think it is better to place it to app.. tnx for idea..
you can close ticket