mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-21 11:09:53 +08:00
8 lines
327 B
TypeScript
8 lines
327 B
TypeScript
/// <reference path="../Definitions/mustache-0.7.d.ts" />
|
|
|
|
var view = { title: "Joe", calc: function () { return 2 + 4; } };
|
|
var output = Mustache.render("{{title}} spends {{calc}}", view);
|
|
|
|
var person;
|
|
var template = "<h1>{{firstName}} {{lastName}}</h1>Blog: {{blogURL}}";
|
|
var html = Mustache.to_html(template, person); |