Gathering detailed insights and metrics for vash-static
Gathering detailed insights and metrics for vash-static
Gathering detailed insights and metrics for vash-static
Gathering detailed insights and metrics for vash-static
npm install vash-static
Typescript
Module System
Node Version
NPM Version
45.6
Supply Chain
94.7
Quality
72.6
Maintenance
100
Vulnerability
97.7
License
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
0%
0
Compared to previous day
Last week
0%
0
Compared to previous week
Last month
0%
0
Compared to previous month
Last year
0%
0
Compared to previous year
4
5
Static HTML renderer for Razor templates, using the Vash library.
Run node _example
to see examples of each public function.
Precompiles a single vash template and passes the template's name and contents in the callback. Use this to create a template cache JSON file to load from.
Precompiles and updates an individual cached template. Can be used on a file watch.
Renders a 'page' vash template by name, which should be stored in the cacheDest, with optional helpers.
By default you can strip out all code between @VASH_IGNORE_START@ and @VASH_IGNORE_END@ before compiling. With 'setIgnoreComments' you can customise these comment blocks, if you need to.
Vash Static uses modules to organise your templates. By default it assumes you have at least a page module, which is abbreviated to 'pg' and is expected in the directory structure. With 'setPageDirType' you can change this, if you need to.
Fetches the 'page' module type ('pgDirType'), which is 'pg' by default
Vash Static uses modules to organise your templates. By default, for "global" templates, it abbreviates to 'glb' and is expected in the directory structure. With 'setGlobalDirType' you can change this, if you need to.
Fetches the 'global' module type ('glbDirType'), which is 'glb' by default
Takes a file path and array of directory types and returns the first type found in the path. If none are found, defaults to page type.
Takes a file path and gets just the file name, optionally with the extention.
Gets the name of a module based on containing directory immediately nested within a 'type'. For example 'app/pg/home/tmpl/Index.vash' would return 'home' because '/pg/' is detected as a 'type'.
Performs conversions to C# syntax, outlined below under the 'C# conversions' heading.
You can use a limited amount of C# syntax, which may be useful if sharing templates with a back end project:
Html.Raw
, which gets converted to Html.raw
.Length
or .Count
for arrays/lists, which gets converted to .length
.Any()
, which gets converted to .length > 0
@foreach
loops like so. Please note that the var
and in
keywords must be present for this to work, but item
and list
can be customised.@foreach(var item in list) {
stuff @item stuff
}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/18 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-12-16
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More