Project

mullet

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
It's like Mustache but the variables are in HTML attributes. * Extremely simple variable syntax is incapable of expressing logic in the templates. * Templates are clean HTML which your HTML authoring tool and browser can display correctly. You can use the templates as a static HTML prototype for your user interface.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 1.17.2
>= 0.7.3

Runtime

>= 0.6.0
>= 1.5.0
 Project Readme

Logic-less HTML templates

  • Extremely simple variable syntax is incapable of expressing logic in the templates.
  • Templates are clean HTML which your HTML authoring tool and browser can display correctly. You can use the templates as a static HTML prototype for your user interface.

Example

Given the template:

<ul>
  <li data-for="repos">
    <a data-href="url" data-text="description"></a>
  </li>
</ul>

Given the data in the hash:

{
  repos: [
    { url: "hello", description: "Hello project" },
    { url: "world", description: "World project" }
  ]
}

Will render the output:

<ul>
  <li>
    <a href="hello">Hello project</a>
  </li>
  <li>
    <a href="world">World project</a>
  </li>
</ul>

Java build instructions

Prerequisites

  • JDK 1.5 or better
  • Ant

Run tests

Starting in the top distribution directory (where this README.md file is located), run the commands:

cd java/core
ant test

Create JAR file

Run the command:

ant

Ruby build instructions

Prerequisites

  • Ruby 1.9 or better
  • I18n
  • Nokogiri
  • Redcarpet
  • YARD

Run tests

Starting in the top distribution directory (where this README.md file is located), run the commands:

cd ruby/core
rake test

Create GEM

Run the command:

rake dist

Project

Web site: http://pukkaone.github.com/mullet/

Source code: https://github.com/pukkaone/mullet