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.
doc-templater
Advanced tools
Compiles a tree of Github-flavored markdown files into themable HTML templates. Supports pulling directly from multiple remote or local git repositories and exposes lifecycle hooks for transforming markdown input (beforeConvert) or HTML output (afterConv
Compiles a tree of Github-flavored markdown files into themable HTML templates. Supports pulling directly from multiple remote or local git repositories and exposes lifecycle hooks for transforming markdown input (beforeConvert
) or HTML output (afterConvert
). Also writes flat tree arrays representing the directory hierarchy as JSON files (these are saved as .jsmenu
files currently, but never fear, they're just normal JSON).
This module is used for the official Sails website at http://sailsjs.org.
$ npm install doc-templater --save
require('doc-templater')().build({
remote: 'git@github.com:balderdashy/sails.git',
remoteSubPath: '',
branch: 'master',
cachePath: '/code/sandbox/doctemplatertest/foo/bar/cache/',
htmlDirPath: '/code/sandbox/doctemplatertest/foo/bar/html',
jsMenuPath: '/code/sandbox/doctemplatertest/foo/bar.jsmenu'
}, function (err,result) {
// If something went wrong...
if (err) {
console.log('ERROR:\n',require('util').inspect(err, false, null));
return;
}
// Otherwise, it worked!
console.log('RESULT:\n',require('util').inspect(result, false, null));
});
#####v0.1.0 August 2014
Refactored to use smaller, more testable modules and enhance stability. Also added some caching/performance improvements.
#####v0.0.9 May 2014
Now supports git branches, infinitely deep docs directories, and outputting json menus with template metaData attached (use
<docmeta name="keyname" value="keyvalue">
inside of templates).
MIT © 2013-2015 Nicholas Crumrine, Mike McNeil & contributors
This module is an official part of the Sails framework ecosystem, and is free and open-source under the MIT License.
FAQs
Compiles a tree of Github-flavored markdown files into themable HTML templates. Supports pulling directly from multiple remote or local git repositories and exposes lifecycle hooks for transforming markdown input (beforeConvert) or HTML output (afterConv
We found that doc-templater demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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
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.