belicekm / parcel-plugin-handlebars-precompile Goto Github PK
View Code? Open in Web Editor NEWPrecompiel handlebars templates
License: MIT License
Precompiel handlebars templates
License: MIT License
Is it possible to write your own custom handlebars helpers for this plugin? In case it is, how would I go abour doing that?
Thank you for your wok on this plugin, it works wonderfully for me +1
Right now incompatible due to changes in a JSAsset. Have to find way around that.
I have an error pointing to the content of an anchor tag in an HBS file.
Cannot resolve dependency 'handlebars/dist/handlebars.runtime'
6 | </button>
7 | <a class="navbar-brand" href="/">Link Label</a>
> 8 | </div>
| ^
=== npm audit security report ===
Manual Review
Some vulnerabilities require your attention to resolve
Visit https://go.npm.me/audit-guide for additional guidance
Moderate Denial of Service
Package js-yaml
Patched in >=3.13.0
Dependency of parcel-plugin-handlebars-precompile [dev]
Path parcel-plugin-handlebars-precompile > parcel-bundler >
htmlnano > cssnano > postcss-svgo > svgo > js-yaml
More info https://nodesecurity.io/advisories/788
High Code Injection
Package js-yaml
Patched in >=3.13.1
Dependency of parcel-plugin-handlebars-precompile [dev]
Path parcel-plugin-handlebars-precompile > parcel-bundler >
htmlnano > cssnano > postcss-svgo > svgo > js-yaml
More info https://nodesecurity.io/advisories/813
High Prototype Pollution
Package handlebars
Patched in >=4.0.14 <4.1.0 || >=4.1.2
Dependency of parcel-plugin-handlebars-precompile [dev]
Path parcel-plugin-handlebars-precompile > handlebars
More info https://nodesecurity.io/advisories/755
found 3 vulnerabilities (1 moderate, 2 high) in 18304 scanned packages
Hi. When I use plugin in browser enviroment it's ok. But when I use it in node.js it says 'TypeError: templateFunction_hbs_1.default is not a function'
I use it this way "import templateFunction from './template.hbs';"
In console (in Node.js) I'm given undefined, but in browser I'm given a function...
Can you help me?
Currently, if I try to set the parcel build target to "index.hbs" (which compiles to HTML using parcel-plugin-handlebars), there is no index.html file that renders and I get a 404 when I try to browse the served site.
When building using globally installed [email protected]
there is following error related to source maps generation:
ร D:\projects\test-parcel-plugin-static-js\test.hbs: "version" is a required argument.
at Object.getArg (C:\Users\mirek\AppData\Roaming\npm\node_modules\parcel-bundler\node_modules\source-map\lib\util.js:24:11)
at new BasicSourceMapConsumer (C:\Users\mirek\AppData\Roaming\npm\node_modules\parcel-bundler\node_modules\source-map\lib\source-map-consumer.js:294:22)
at new SourceMapConsumer (C:\Users\mirek\AppData\Roaming\npm\node_modules\parcel-bundler\node_modules\source-map\lib\source-map-consumer.js:22:7)
at SourceMap.getConsumer (C:\Users\mirek\AppData\Roaming\npm\node_modules\parcel-bundler\src\SourceMap.js:38:12)
at SourceMap.extendSourceMap (C:\Users\mirek\AppData\Roaming\npm\node_modules\parcel-bundler\src\SourceMap.js:149:29)
at JSAsset.generate (C:\Users\mirek\AppData\Roaming\npm\node_modules\parcel-bundler\src\assets\JSAsset.js:159:50)
at JSAsset.process (C:\Users\mirek\AppData\Roaming\npm\node_modules\parcel-bundler\src\Asset.js:216:35)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.