Installations
npm install egg-view-nunjucks-pagelet-w
Developer Guide
Typescript
No
Module System
N/A
Min. Node Version
>=6.0.0
Node Version
8.11.1
NPM Version
6.1.0
Score
76.5
Supply Chain
98.1
Quality
74.5
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
scrat-team
Download Statistics
Total Downloads
1,458
Last Day
5
Last Week
17
Last Month
22
Last Year
161
GitHub Statistics
2 Stars
8 Commits
2 Forks
16 Watching
2 Branches
7 Contributors
Package Meta Information
Latest Version
1.0.3
Package Id
egg-view-nunjucks-pagelet-w@1.0.3
Unpacked Size
313.19 kB
Size
111.81 kB
File Count
82
NPM Version
6.1.0
Node Version
8.11.1
Total Downloads
Cumulative downloads
Total Downloads
1,458
Last day
0%
5
Compared to previous day
Last week
466.7%
17
Compared to previous week
Last month
266.7%
22
Compared to previous month
Last year
2.5%
161
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
w modify:
依赖改为nunjucks-pagelet-w:
js中require使用改为需要具体到文件(之前为到目录)
下面为原repo说明
=========================================================================
egg-view-nunjucks-pagelet
Support the view rendering implementation of the nunjucks pagelet. Depends on the egg-view-nunjucks template view engine.
Pagelet: https://github.com/scrat-team/nunjucks-pagelet
DOCS: https://mozilla.github.io/nunjucks/templating.html
Install
1$ npm i egg-view-nunjucks egg-view-nunjucks-pagelet --save
Usage
add plugin in {app_root}/config/plugin.js
1exports.nunjucks = { 2 enable: true, 3 package: 'egg-view-nunjucks', 4}; 5 6exports.nunjucksPagelet = { 7 enable: true, 8 package: 'egg-view-nunjucks-pagelet', 9};
configure nunjucks in {app_root}/config/config.default.js
1exports.view = { 2 defaultViewEngine: 'nunjucks' 3}; 4 5exports.nunjucksPagelet = { 6 // default layout template relative to view base dir 7 // layout: 'layout/layout.tpl', 8 // default scrat resource manifest path 9 // manifest: path.join(app.baseDir, 'config/manifest.json'), 10 // whether using custom parser, default true 11 // for more detail, see https://github.com/scrat-team/nunjucks-tag#custom-parser-rules 12 // useCustomParser: true, 13 // crossorigin: "" 14 // 15};
Render in controller
1exports.home = function* (ctx) { 2 yield ctx.render('home', { list }); 3};
Configuration
see config/config.default.js for more detail.
Questions & Suggestions
Please open an issue here.
License
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 1/8 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 1 are checked with a SAST tool
Score
3.2
/10
Last Scanned on 2025-01-27
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