$ cnpm install @tryghost/tpl
npm install @tryghost/tpl --save
or
yarn add @tryghost/tpl
const tpl = require('@tryghost/tpl');
messages = {
myError: 'Something terrible happened to {something}'
};
console.error(tpl(messages.myError, {something: 'The thing'}));
This is a mono repository, managed with lerna.
Follow the instructions for the top-level repo.
git clone this repo & cd into it as usualyarn to install top-level dependencies.yarn devyarn lint run just eslintyarn test run lint and testsCopyright (c) 2013-2025 Ghost Foundation - Released under the MIT license.
Copyright 2013 - present © cnpmjs.org | Home |