Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. -- handlebars basics
  2. {{ . }} - item in a list
  3. i.e. when passed ["a", "b", "c"], {{ . }} would yield a, b, c
  4. {{ varname }} - returns key for a dict in a list of dictionaries
  5. i.e. when passed [{"foo": 1}, {"foo": 2}]], {{ foo }} would yield 1, 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement