![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
fs-hogan is a fork of Hogan.js, a fast mustache-compatible templating engine that supports template inheritance (supers), a feature that may make it into the official spec for mustache v2.0.0. The goal of fs-hogan is to take advantage of Hogan.js while also making rendering templates from the file system a breeze.
$ npm install fs-hogan
var hogan = require('fs-hogan');
true
, fs-hogan will cache file templates after they are read from disk. [default: false
]'views'
]'hjs'
]In addition to these options, fs-hogan also supports the compilation options of Hogan.js.
Sets option
to value
. To set multiple options at once, you can pass in an object that maps keys to options. Returns hogan
so you can configure fs-hogan while requiring it.
Asynchronously renders the template that exists at path
with the context provided by context
and then calls callback
with 2 arguments: err
and text
.
When path
is a relative path, templates
will be used as the base path.
A working example of fs-hogan exists in the /examples directory.
fs-hogan works great with Express.
var express = require('express');
var hogan = require('fs-hogan');
var app = express();
app.configure(function() {
app.set('views', __dirname + '/views');
app.set('view engine', 'hjs');
hogan.set({ templates: app.get('views'), extension: app.get('view engine') });
app.engine('hjs', hogan.renderFile);
});
Found a bug? Create an issue on GitHub.
https://github.com/jharding/fs-hogan/issues
For transparency and insight into the release cycle, releases will be numbered with the follow format:
<major>.<minor>.<patch>
And constructed with the following guidelines:
For more information on semantic versioning, please visit http://semver.org/.
Copyright (c) 2012 Jake Harding
Licensed under the MIT License.
FAQs
Fork of hogan.js that falls back to file system for partials.
The npm package fs-hogan receives a total of 2 weekly downloads. As such, fs-hogan popularity was classified as not popular.
We found that fs-hogan 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.