lua-haml update base on https://github.com/norman/lua-haml
Lua Haml is an implementation of the Haml markup language for Lua.
A Haml language reference can be found here.
A basic haml tutorial can be found here
This repository is modified version of here
Lua Haml implements almost 100% of Ruby Haml, and attempts to be as compatible as possible with it, with the following exceptions:
:maruku
, :ruby
and :sass
.Here's a Haml template that uses most of Lua Haml's features.
Lua Haml is now feature complete, but is still considered beta quality. That said, I am using it for a production website, and will work quickly to fix any bugs that are reported. So please feel free to use it for serious work, just not the Space Shuttle, ok? And very welcome any patch.
Before run the specification test, you need to install lpeg module and json modules
To run test, do this:
lua test.lua
To convert haml to html, do this:
lua bin/luahaml sample.haml > sample.html
To run bench, do this:
lua bench.lua sample.haml 10000
Please report them on the Issues Tracker.
To Hampton Caitlin, Nathan Weizenbaum and Chris Eppstein for their work on the original Haml. Thanks also to Daniele Alessandri for being LuaHaml's earliest "real" user, and a source of constant encouragement.
The MIT License
Copyright (c) 2009-2010 Norman Clarke
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.