Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
docpad-plugin-vash
Advanced tools
Vash to anything plugin for DocPad
Vash, aka "the Sixty Billion Double Dollar Template Compiler", is an implementation of the [Razor syntax] (http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx) view engine for JavaScript.
This plugin for DocPad allows you to use the Razor syntax to write your DocPad layouts.
Use the .vash
suffix for your Vash templates.
Example:
default.html.vash
<html>
<head>
<title>@getPreparedTitle()</title>
@html.raw(getBlock("meta").toHTML())
@html.raw(getBlock("styles").toHTML())
</head>
<body>
<h1>@document.title</h1>
@html.raw(content)
@html.raw(getBlock("scripts").toHTML())
</body>
</html>
This plugin configures Vash to use its useWith
mode, meaning that the members of the template data
are available to the razor view as the default object. Properites such as document
and content
,
as well as methods suchas getFiles
are directly available in the template.
FAQs
DocPad plugin that renders vash (Razor syntax) templates
We found that docpad-plugin-vash 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.