mojito-dot

An addon view engine for mojito based on doT templates

Usage no npm install needed!

<script type="module">
  import mojitoDot from 'https://cdn.skypack.dev/mojito-dot';
</script>

README

mojito-dot

Adds a doT templates as a view engine for mojito.

Big props to olado for making the simplest fastest JS template engine known to MAN! http://olado.github.io/doT/index.html

Simply name your views with the doT handler, like so.

index.doT.html

And use the doT syntax inside.

Partials are also supported

partials/snippet.doT.html

I'm a partial

index.doT.html

{{#def.snippet}}