Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@sanktionsfrei/shared-fax-template
Advanced tools
📘 Main fax template to be shared between frontend & backend and to be consumed by handlebars
📘 Main fax template to be shared between frontend & backend and to be consumed by handlebars
The idea behind this is that we can share the main template between the cronjobs and the frontend, making it easier for everyone to maintain the text content.
This includes the regular node build and one build for the browser.
Include ./dist/fax-template.js
as script in your HTML page. It exports the precompiled template
to Handlebars.templates.fax
<html>
<body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.6/handlebars.runtime.min.js"></script>
<script src="/assets/shared-fax-template/dist/fax-template.js"></script>
<script>
console.log(Handlebars.templates.fax({firstName: 'Robin'}))
</script>
</body>
</html>
In node it's exported as regular CommonJS module.
"dependencies": {
"shared-fax-template": "sanktionsdev/shared-fax-template"
}
const Handlebars = require('handlebars')
const faxTemplate = require('shared-fax-template')
const template = Handlebars.compile(window.faxTemplate)
console.log(template({firstName: 'Robin'}))
FAQs
📘 Main fax template to be shared between frontend & backend and to be consumed by handlebars
We found that @sanktionsfrei/shared-fax-template demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.