Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Latest commit

 

History

History
24 lines (19 loc) · 439 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 439 Bytes

Mustache

Mustache.js for Googe Apps Script

Usage

Add library

project key: 13re0EpD6XiVa5zHXndGiYtcH-QMnbeE5MJH190pJ8xCYhmuW5sX2ZO5R

Use in your script

Example:

var template = '{{title}} spends {{calc}}'
var data = {
  title: 'Joe',
  calc: function () {
    return 2 + 4
  }
}

var output = Mustache.render(template, data) // Joe spends 6

Reference