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.
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.
Try this:
http://bitdrift.com/post/2376383378/using-mustache-templates-in-express
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With