Sha256: 180e96c58c6d4879b32c070fd7ae2cbd5abd0e80146d31f47cceb836c1505a42
Contents?: true
Size: 436 Bytes
Versions: 3
Compression:
Stored size: 436 Bytes
Contents
let TEMPLATES = {}; export function setTemplates(templates) { TEMPLATES = templates; } export function getTemplates() { return TEMPLATES; } export function getTemplate(name) { if (TEMPLATES.hasOwnProperty(name)) { return TEMPLATES[name]; } } export function hasTemplate(name) { return TEMPLATES.hasOwnProperty(name); } export function setTemplate(name, template) { return (TEMPLATES[name] = template); }
Version data entries
3 entries across 3 versions & 1 rubygems