Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nodejs mustache/handlebars example project

I've been looking to use mustache or handlebars and nodejs but I have't been successful to finding a sample project online that is working.

I just need a sample skeleton structure which uses mustache as a templating engine.

My goal is to use nodejs, mustache/handlebars, less (css framework) and some good routing but haven't been able to find a good example to work off.

UPDATE

I created a project which uses less, mustache and express using some tutorial online but I'm getting an error at startup. app.js at https://gist.github.com/1237758

I'm getting TypeError: Object # has no method 'compile'

I have express, less and mustache in my node_modules.

like image 634
ed1t Avatar asked Mar 01 '26 12:03

ed1t


1 Answers

Try this:

http://bitdrift.com/post/2376383378/using-mustache-templates-in-express

like image 101
Swift Avatar answered Mar 03 '26 01:03

Swift



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!