Socket
Socket
Sign inDemoInstall

ejs-prerender

Package Overview
Dependencies
18
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

examples/basic/components/head.ejs

2

package.json
{
"name": "ejs-prerender",
"version": "1.0.2",
"version": "1.0.3",
"description": "A tool for structured pre-rendering of EJS templates and partials",

@@ -5,0 +5,0 @@ "keywords": ["ejs", "prerender", "ssr"],

@@ -17,4 +17,40 @@ # ejs-prerender

This package utilizes the debug library, so adding `DEBUG=*` to a `.env` file or the command path (`DEBUG=* npx ejs-prerender`) will enable logging of everything.≈
This package utilizes the debug library, so adding `DEBUG=*` to a `.env` file or the command path (`DEBUG=* npx ejs-prerender`) will enable logging of everything.
## Recommended File Structure
The following file structure works out-of-the-box with no customized environment variables.
```
root
├ components/
│ └ head.ejs
└ pages
├ about
│ └ index.ejs
└ index.ejs
```
will render as
```
root
└ public
├ about
│ └ index.html
└ index.html
```
The components can be simply referenced inside EJS pages as seen below:
```html
<!DOCTYPE html>
<html>
<head>
<%- include('head') -%>
</head>
<body><h1>INDEX</h1></body>
</html>
```
## Configuration

@@ -21,0 +57,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc