
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
browserify v2 plugin for bliss
install blissify locally to your project
npm install blissify
Create templates using bliss; by default blissify transforms .html
files
@!(name)
<h1>Hello @name!</h1>
Require and use those templates in your view (backbone), controller (spine), etc.
var template = require('template.html');
$('body').html(template({name: 'Nali'}));
On the command line, transform module with browserify -t
option:
browserify -t blissify main.js > bundle.js
Or, in a bundler script (e.g. bundler.js
), use blissify as a transform:
var browserify = require('browserify');
var blissify = require('blissify');
var b = browserify();
b.add('view.js');
b.transform(blissify);
b.bundle().pipe(process.stdout);
Then, run the script to bundle it up:
node bundler
Pro tip: you can configure a custom extension for blissify
bundler.transform(blissify.configure('.bliss'));
To set the transformer in debug mode, set verbose=true
when instatiating blissify
var blissify = require('blissify');
blissify.verbose = true;
When enabled, debug mode will console.log
when a raw template is successfully recompiled and console.error
when a parse error occurs. This is super helpful if you're using watchify. an error will look like:
[blissify] error: <badTemplate.html>
<errorStackTrace>
Note that when in debug mode, the error is not passed to the through
stream.
0.1.x
to 1.0.0
?b.transform(blissify())
to b.transform(blissify)
drink up me 'earties, yo ho!
FAQs
a browserify v2 plugin for bliss
The npm package blissify receives a total of 2 weekly downloads. As such, blissify popularity was classified as not popular.
We found that blissify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.