danieldisu / ninja-mustache

Mustache template module for Ninja framework based on the mustache.java engine.

Home Page:http://kpacha.github.io/ninja-mustache/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mustache template module for Ninja framework.

Mustache (http://mustache.github.io/) can be used for HTML, config files, source code - anything. It works by expanding tags in a template using values provided in a hash or object.

This is an easly plugable module for Ninja web framework to write templates using mustache.java engine. based on the ninja-rythm module.

Getting started

Setup

  1. Add the ninja-mustache dependency to your pom.xml:

    org.ninjaframework ninja-mustache-module 0.1.1
  2. Install the module in your conf.Module:

    @Override protected void configure() {

     ...
    
     install(new NinjaMustacheModule());
    
     ...
    

    }

  3. All set. Start writing template in 'views' folder of your application.

  4. Or check out ninja-mustache-demo (in progress). Run any one of the below commands under demo:

    mvn jetty:run OR mvn tomcat7:run

Modify code/template -- Save -- Refresh browser. Enjoy!

Bitdeli Badge

About

Mustache template module for Ninja framework based on the mustache.java engine.

http://kpacha.github.io/ninja-mustache/

License:Apache License 2.0


Languages

Language:Java 80.1%Language:CSS 15.7%Language:JavaScript 4.2%