Skip to content

A simple node hapi server for practice with dynamic handlebars layout and partial templates.

License

Notifications You must be signed in to change notification settings

sjm-practice/hapi-handlebars

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hapi-handlebars

A simple node hapi server for practice with handlebars template engine, default layout, partial templates, and helpers.

Items learned, practiced...

  • trying a new directory structure and entry point
    • using bin/www pattern (as used by Codeschool and reportedly, Node personnel)
    • trying a wwwd entry point for debug (node-debug)
      • MAY ABANDON THIS APPROACH/EXPIREMENT, IF NO BENEFITS FOUND
  • Handlebars, Partials and Helpers
  • Testing payload for existing string segments (using lab)
  • running custom scripts via npmjs
    • npm run debug
      • where debug launches node-inspector

Notes

  • I found the documentation for handlebars (at npmjs.org and handlebars.js) to be bit confusing
    • I think mostly because they are both geared toward using handlebars directly/explicitly as client side javascript
    • hapi takes care of the majority of that for you, when configuring handlebars as the template engine
  • To get a better understanding of handlebars, I also read mustache docs
    • and the hapi api docs for views (and their tutorial)

Tutorial / Resources Feedback

About

A simple node hapi server for practice with dynamic handlebars layout and partial templates.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published