@jtorm/text-method
v1.0.0
Published
jTorm Text Method
Downloads
80
Readme
jTorm Text Method
Add text with multilangual abilities. It looks in the context.session object for a language setting, if not found then it looks in the config for the language setting. As a fallback it uses english (en). Language can be set in the c attribute for example:
jTormTextMethod.data.nl = {"Example title": "Voorbeeld titel", etc.}
Install
npm install @jtorm/text-method
Properties
Any key: value
pair.
Example
Alias = t
body->insert {
h: '<p></p>';
m: 'a';
p->text(sampleText: 'Example title')->append {
h: sampleText;
}
}