Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/voltraco/mineral

A very small jade-like template engine
https://github.com/voltraco/mineral

compiler jade pug template-language templates templating

Last synced: 27 days ago
JSON representation

A very small jade-like template engine

Awesome Lists containing this project

README

        

ABOUT
Mineral is a language that compiles to markup or dom. It's similar to Jade (aka
Pug). Its goal is to be much smaller and simpler than pug, and integrate well
with modern client side frameworks.

DOCS
http://voltraco.github.io/mineral/

INSTALL
npm i mineral

CLI
Watch and compile mineral files https://github.com/voltraco/mineral-cli

WEBPACK
Use https://github.com/voltraco/mineral-loader to read mineral files and parse
them into trees. This is easy, just `require('./file.min')`.

BROWSERIFY
For browserify, use the individual components.

const tree = require('mineral/parser')(string)
const el = require('mineral/compilers/dom')(tree)