Pogoscript template engine
PogoScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
spec
src
test
.gitignore
Makefile
README.md
package.json

README.md

Htmlism

A little template engine for PogoScript.

Given some HTML, pogo style:

html

    body { class = 'important' }

        p (message)

Running it through htmlism like this:

 htmlism.render '<the-template-above>' { message = 'hello world' }

Renders this string:

<html><body class="important"><p>hello world</p></body></html>

This is just for fun.

Of course, I don't mean for anybody to actually use this!