I like suggestion 2... simple is good. and will focus on read the content 
of the YAML file [ https://www.npmjs.org/package/node-yaml-config ] then 
parse and run the generator using those parameters.
 
Perhaps some checks to make sure there is not something previously build 
and need to be left alone, delete or created depending on the changes of 
the main configuration File.
 
Thank you Alex.
 
Brains R Like books only work when they are open.
 
 

>  
> Suggestion 2:
>  
> Screw JSON.
>  
> This is an equivalent document written in YAML. By "equivalent" I mean it 
> have exactly the same meaning (which you can check in 
> https://nodeca.github.io/js-yaml/<https://www.google.com/url?q=https%3A%2F%2Fnodeca.github.io%2Fjs-yaml%2F&sa=D&sntz=1&usg=AFQjCNFUUNEvgWALUSivAPmaILuVjM78Qg>),
>  but much shorter and it can be written by hand like I just did.
>  
> ---
> SiteName: My NodeJS Site
> Look and Feel:
>   Theme: Business 1
>   Skin: Blue
>   Layout: 1H-3C-1F
> Pages:
>   Home:
>     Region-1: &ACTIVE {Active: 'Yes'}
>     Region-2: *ACTIVE
>     Region-3: &INACTIVE {Active: 'No'}
>   Products:
>     Region-1: *ACTIVE
>     Region-2: *INACTIVE
>     Region-3: *INACTIVE
>   Services:
>     Region-1: *ACTIVE
>     Region-2: *ACTIVE
>   About Us:
>     Region-1: *ACTIVE
>     Region-2: *INACTIVE
> ...
>  
>  
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/69709614-a2d2-4644-ac0c-6211906e7773%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to