Skip to content
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.

pukkaone/mullet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Logic-less HTML templates. It's like Mustache but the variables are in HTML attributes.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages