arkadiuszsz / mustache.lua

The Mustache templating language in Lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

=== mustache.lua ===


= What?
    - Mustache is a logic free template language
    - Based on github.com/defunkt/mustache

= Why?
    - To learn Lua (I'm new to it, let me know if something is not Lua-esque)
    - Also, didn't see github.com/nrk/hige

= Status
    - Mostly complete, issues remain though.
    - Working:
        - Normal tags
        - Unescaped tags
        - Comment tags
        - Inverted sections
        - Wrappers
        - Dictionaries
        - Lists of key/value pairs
        - Empty lists
        - Booleans
    - Run 'lua tests.lua' to see examples that work

= Todo
    - Rendering to and from files
        - In progress, but currently example.mustache and example.lua don't work.
    - Iteration as in mustache.js, with {{ . }}
    - Test fully on examples on Defunkt's Mustache docs
    - Remove debug statements
    - Find any other scoping problems (add local?)

About

The Mustache templating language in Lua