Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Pâté (/ˈpæteɪ/) is a simple XPath-oriented, express-compatible template engine for Node.js
npm install node-pate
Pâté depends on libxmljs, thus compilation is needed via node-gyp
Dependencies (more info):
Application:
var express = require('express');
var app = express();
var router = express.Router();
var pate = require('node-pate');
var formatter = require('./format_lib.js')
// view engine setup
app.engine('html', pate.__express);
app.set('views', path.join(__dirname, 'views'));
...
router.get('/test', function(req, res, next) {
res.render('templates/test.html', {
xml: '<data><row><bread name="Bretzel" price="42.56" /></row></data>',
xpath: '/*/*',
format_lib: formatter
});
});
Test:
cd test-express && node bin/www
Go to: http://localhost:3000/test
To use a namespace put it inside the options object in the form:
ns: {
prefix: 'URI'
}
This software is still evolving. There are likely cases that it cannot handle, so file a feature request in github if there is something you think it should do.
https://github.com/dnewcome/jath
Pâté is provided under the MIT free software license. See the file LICENSE for the full text.
0.0.5
FAQs
Simple XPath-oriented, Express-compatible Template Engine
We found that node-pate 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.