
Company News
Andrew Becherer Joins Socket as Chief Information Security Officer
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.
docsify-mustache
Advanced tools
A Docsify plugin that allow preprocessing markdown documents with Mustache template engine. You can substitute variables in markdown documents using mustache syntax {{variable}} and {{variable.property}}.
A Docsify plugin that allow preprocessing markdown documents with Mustache template engine. You can substitute variables in markdown documents using mustache syntax {{variable}} and {{variable.property}}. Variables can be load from various sources, including front matter section of markdown documents, external JSON or XML files and Docsify configuration.
Add following script tag to your index.html after docsify.
<script src="//cdn.jsdelivr.net/npm/docsify-mustache"></script>
Optionally add docsify-front-matter plugin to access markdown front matter variables.
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/front-matter.min.js"></script>
You can load Mustache variables with data option. The value can be a string, object or array.
Example:
window.$docsify = {
mustache: {
data: [
'doc/vars.json',
'doc/pom.xml',
{
question: 'What is your favorite number?'
}
]
}
}
There is no way to access XML attributes, tag names used for hierarchy and for referring element's inner text.
The plugin loads package.json and make it available for Mustache as package variable. You can disable this feature setting noPackage option to true value:
window.$docsify = {
mustache: {
noPackage : true
}
}
Check the documentation site for more information.
This project is licensed under the MIT License. See the LICENSE for details.
FAQs
A Docsify plugin that allow preprocessing markdown documents with Mustache template engine. You can substitute variables in markdown documents using mustache syntax {{variable}} and {{variable.property}}.
The npm package docsify-mustache receives a total of 18 weekly downloads. As such, docsify-mustache popularity was classified as not popular.
We found that docsify-mustache 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.

Company News
Socket’s first CISO brings deep experience securing high-growth SaaS companies as open source supply chain threats accelerate.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.