Giter Club home page Giter Club logo

hige's Introduction

Hige 髭
{{growing mustaches in your templates with Lua}}
===============================================================================

-- Introduction ---------------------------------------------------------------

Hige is a small yet fairly complete templating library for the Lua programming 
language and it is based off Mustache[1] while it borrows a few implementation 
ideas from Mustache.js[2].

[1] http://github.com/defunkt/mustache
[2] http://github.com/janl/mustache.js


-- Usage ----------------------------------------------------------------------

  require 'hige'

  local view = {
      project  = 'hige', 
      nickname = 'nrk', 
      url      = function()
          return 'http://github.com/'..nickname..'/'..project
      end, 
  }

  local template = '{{project}} is maintained by {{nickname}} at {{url}}'
  local rendered = hige.render(template, view)
  -- hige is maintained by nrk at http://github.com/nrk/hige


-- Why hige? ------------------------------------------------------------------

Just for the fun of it :-)


-- Current status of the project-----------------------------------------------

I was not really serious about Hige when I started working on it. There are 
already much better alternatives for Lua such as Cosmo[3] (whose concept is 
similar in many ways to hige) and lua-haml[4], so the main reason which is 
driving its development is simply to deepen my knowledge of Lua. Anyway, I 
am going to fix the currently broken parts and add the missing features.

[3] http://cosmo.luaforge.net/
[4] http://github.com/norman/lua-haml


-- Author ---------------------------------------------------------------------

Daniele Alessandri - suppakilla{{at}}gmail.com


-- Notes ----------------------------------------------------------------------

Aside from a few ideas behind Hige's implementation choices, most of the 
examples that come with it were taken from Mustache.js.


-- Requirements ---------------------------------------------------------------

  * Telescope (required by the test suite):
    http://telescope.luaforge.net/
  * LuaFileSystem (required by the test suite):
    http://www.keplerproject.org/luafilesystem/

hige's People

Contributors

nrk avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.