easy-template-x
Advanced tools
Comparing version 3.0.1 to 3.0.2
{ | ||
"name": "easy-template-x", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Generate docx documents from templates, in Node or in the browser.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -21,2 +21,3 @@ # easy-template-x | ||
- [Writing custom plugins](#writing-your-own-plugins) | ||
- [Listing tags](#listing-tags) | ||
- [Scope resolution](#scope-resolution) | ||
@@ -387,2 +388,15 @@ - [Extensions](#extensions) | ||
## Listing tags | ||
You can get the list of [tags](https://github.com/alonrbar/easy-template-x/blob/8a88535ef090fc357cf3523411bef0d0729d10c8/src/compilation/tag.ts) in a template by calling the `parseTags` method as follows: | ||
```typescript | ||
import { TemplateHandler } from 'easy-template-x'; | ||
const templateFile = fs.readFileSync('myTemplate.docx'); | ||
const handler = new TemplateHandler(); | ||
const tags = await handler.parseTags(templateFile); | ||
``` | ||
## Scope resolution | ||
@@ -389,0 +403,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
387523
571