Package Exports
- @rokebrand/react-native-twig
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rokebrand/react-native-twig) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
react-native-twig
Twig templating for use in React Native for print templates
const properties = {
title: 'hello there',
}
const rawTemplate =
'<div style="border-bottom:1px solid;">\n' +
'<div style="font-size: 9px; color: rgb(255, 0, 0); text-align: center; font-family:Arial,Helvetica,sans-serif;"><strong>Template</strong><br />\n' +
'{{title}}</div>\n' +
'</div>';
const template = Twig.twig({
data: rawTemplate,
});
console.log(template.render(properties))