Skip to content
A template parser for deno
Branch: master
Clone or download
Latest commit 218bc67 May 13, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test_data initial commit May 11, 2019
.editorconfig initial commit May 11, 2019
.eslintrc.json initial commit May 11, 2019
.travis.yml activate eslint May 12, 2019
LICENSE initial commit May 11, 2019
README.md Update README.md May 13, 2019
_test.ts initial commit May 11, 2019
mod.ts initial commit May 11, 2019
mod_test.ts initial commit May 11, 2019
tsconfig.json initial commit May 11, 2019

README.md

Deno Tiny Templates Build Status

A template parser for Deno.

Usage

import { Template } from "./mod.ts";

const tmpl = decoder.decode(Deno.readFileSync("./myfile.tmpl"));
const t = new Template(tmpl);
t.render({ object: "to", pass: "to", my: "template" });

Options

  • openBracket : Openning bracket of your var. Default : {{
  • closeBracket : Openning bracket of your var. Default : }}
  • debug : If true output warning when value is not found in given object. Default : false
You can’t perform that action at this time.