Gathering detailed insights and metrics for egg-view-nunjucks-pagelet-w
Gathering detailed insights and metrics for egg-view-nunjucks-pagelet-w
Gathering detailed insights and metrics for egg-view-nunjucks-pagelet-w
Gathering detailed insights and metrics for egg-view-nunjucks-pagelet-w
npm install egg-view-nunjucks-pagelet-w
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Stars
8 Commits
2 Forks
15 Watchers
2 Branches
7 Contributors
Updated on Jun 14, 2018
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
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
w modify:
依赖改为nunjucks-pagelet-w:
js中require使用改为需要具体到文件(之前为到目录)
下面为原repo说明
=========================================================================
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
1$ npm i egg-view-nunjucks egg-view-nunjucks-pagelet --save
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};
see config/config.default.js for more detail.
Please open an issue here.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
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
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
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