2.3.16 • Published 3 months ago
ember-template-tag v2.3.16
ember-template-tag
instead of using ember-template-imports to find, parse & transform templates, this can be used.
const { parseTemplates, preprocessEmbeddedTemplates, transform } = require('ember-template-tag');
const { TEMPLATE_TAG_NAME, TEMPLATE_LITERAL_IDENTIFIER, TEMPLATE_LITERAL_MODULE_SPECIFIER } = require('ember-template-tag');
the output of parseTemplates is
<template>Hello!</template>
[
{
"contentRange": [
10,
16,
],
"contents": "Hello!",
"endRange": {
"end": 27,
"start": 16,
},
"range": [
0,
27,
],
"startRange": {
"end": 10,
"start": 0,
},
"tagName": "template",
"type": "template-tag",
},
]
to transform
const { transform } = require('ember-template-tag');
const transformed = transform('...')
2.3.16
3 months ago
2.3.9
8 months ago
2.3.13
8 months ago
2.3.12
8 months ago
2.3.15
7 months ago
2.3.14
8 months ago
2.3.11
8 months ago
2.3.10
8 months ago
2.3.0
9 months ago
2.3.2
9 months ago
2.3.1
9 months ago
2.3.4
9 months ago
2.3.3
9 months ago
2.3.6
9 months ago
2.3.5
9 months ago
2.3.8
9 months ago
2.3.7
9 months ago
2.2.4
9 months ago
2.2.3
9 months ago
2.2.2
9 months ago
2.2.1
9 months ago
2.2.0
10 months ago
2.1.0
10 months ago
2.0.12
10 months ago
2.0.11
10 months ago
2.0.10
10 months ago
2.0.9
10 months ago
2.0.8
10 months ago
2.0.7
10 months ago
2.0.6
10 months ago
2.0.5
10 months ago
2.0.3
10 months ago
2.0.2
10 months ago
2.0.0
10 months ago