Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Data seperation #15

Closed
ahmedelgabri opened this issue Jul 17, 2013 · 1 comment
Closed

Data seperation #15

ahmedelgabri opened this issue Jul 17, 2013 · 1 comment

Comments

@ahmedelgabri
Copy link

Can we have an option to specify a folder data/ for example to look for data .json files in it instead of having the .json files & .swig files in the same level. Or search for .json files that match the .swig file & use it something like what Assemble matching names section

for example this is much cleaner

source/
   |_ data/
       |_ index.json
       |_globals.json
       |_page.json
   |_ templates/
       |_ index.swig
       |_ about.swig
       |_ page.swig

than

source/
   |_ templates/
       |_ index.swig
       |_ index.json
       |_ about.swig
       |_ about.json
       |_ page.swig
       |_ page.json
       |_ globals.json
@nickpack
Copy link
Collaborator

This is a good suggestion indeed, makes packaging up built files a lot easier, to implement this we'll need to be careful how we manage it as not everyone has flat source directories, I'll have a think as to how is best to handle it.

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

No branches or pull requests

2 participants