easy-template-x
Advanced tools
Changelog
This version removes the notion of a "tag type" and uses instead the notion of "content type". Instead of inferring the type from the tag prefix the type is now explicitly declared in the supplied JSON data.
Example:
Before:
tag: "{@newPage}"
data: {
newPage: "<w:br w:type="page"/>"
}
After:
tag: "{newPage}"
data: {
newPage: {
_type: "rawXml",
xml: "<w:br w:type="page"/>"
}
}
The only exceptions are the "loop" content type which still uses the "#" opening prefix and "/" closing prefix, and the "text" content type which is the default and does not requires explicitly stating it.
RawXmlPlugin
requires data of the form { _type: 'rawXml', xml: string }
.Tag.type
property.Changelog
Changelog