1.0.0 • Published 1 year ago

@jtorm/config-method v1.0.0

Weekly downloads
-
License
GPL-3.0
Repository
gitlab
Last release
1 year ago

jTorm Config Method

Access config variables from the context. Functions like an if method, except without an else function. The config value will be added to the data model.

Install

npm install @jtorm/config-method

Properties

OptionTypeRequiredDescription
kstringtrueConfig key.
vanyfalseConfig value to match it with.
aanyfalseSet to data as key name.

Example

body {
  ->config(k: createDoc, v: 1)->append { h: 'Config createDoc set'; }
  ->config(k: createDoc, v: 0)->append { h: 'Config createDoc not set'; }
}
1.0.0

1 year ago

0.0.4

2 years ago

0.0.3

3 years ago

0.0.2

3 years ago