mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 21:03:29 +03:00
6d3a629690
- This mini helper wraps lodash template and supports `{...}` as the delimiters - It's designed to use and support the exact same patterns we already have in our en.json strings E.g. The {flagName} flag must be enabled in labs if you wish to use the \\{\\{{helperName}\\}\\} helper. - This allows us to get rid of our old, broken i18n helper and still keep some of the smart messaging we have setup - It also keeps the refactor surface area minimal
536 B
536 B
Tpl
Install
npm install @tryghost/tpl --save
or
yarn add @tryghost/tpl
Usage
Develop
This is a mono repository, managed with lerna.
Follow the instructions for the top-level repo.
git clone
this repo &cd
into it as usual- Run
yarn
to install top-level dependencies.
Run
yarn dev
Test
yarn lint
run just eslintyarn test
run lint and tests
Copyright & License
Copyright (c) 2013-2021 Ghost Foundation - Released under the MIT license.