A bolder kind of mustache
JavaScript CoffeeScript
Pull request Compare This branch is 108 commits behind jeremyruppel:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
src
test
.gitignore
.travis.yml
Cakefile
LICENSE
README.md
package.json

README.md

Walrus

The Teddy Build Status

Goal

  • Write a mustache templating language that fits more with the idea of view-objects as opposed to view-helpers
  • Support method helpers fully. This means:
    • (Semi)-Automatic invocation.
    • "Write what you mean" when it comes to functions.
    • Multiple arguments
    • Arguments may be primitive types
    • Ability to add in custom domain methods at the view object level (how do we do this?)
    • Still support helper methods and block helpers, but put the helper methods where they make the most sense
  • Support object paths like handlebars does
  • Make it easy to traverse back up to root, and to read as such

  • More to come...

Ideas

  • @ means this, like in coffeescript. This makes it easy to reference the root object context from anywhere.
  • do/end style blocks make more sense than # and / to me

Filter Packages

  • walrus.string: capitalization, casing, hyphenization, etc
  • walrus.inflection: pluralization, etc
  • walrus.date: date formatting
  • walrus.domain: bring raw json objects into the client domain (perhaps theres a better name for this)