Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ejs-prerender

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ejs-prerender - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4-beta.1

lib/grabPagesSync.js

2

lib/ejsPrerender.js

@@ -5,2 +5,3 @@ const debug = require('./debug');

const renderTemplate = require('./renderTemplate');
const replaceExtension = require('./replaceExtension');
const writeHtml = require('./writeHtml');

@@ -21,3 +22,2 @@

const getStatusMessage = (pagePath) => `page "${pagePath}" ${statuses[pagePath]}`;
const replaceExtension = (oldExtension, newExtension, path) => `${path.substring(0, path.length - oldExtension.length)}${newExtension}`;

@@ -24,0 +24,0 @@ const pages = await grabPages(config);

const ejsPrerender = require('./ejsPrerender');
const getBaseComponentsDir = require('./getBaseComponentsDir');
const getConfig = require('./getConfig');
const grabPages = require('./grabPages');
const grabPagesSync = require('./grabPagesSync');
const renderTemplate = require('./renderTemplate');
const replaceExtension = require('./replaceExtension');
const writeHtml = require('./writeHtml');
ejsPrerender.getBaseComponentsDir = getBaseComponentsDir;
ejsPrerender.getConfig = getConfig;
ejsPrerender.grabPages = grabPages;
ejsPrerender.grabPagesSync = grabPagesSync;
ejsPrerender.renderTemplate = renderTemplate;
ejsPrerender.replaceExtension = replaceExtension;
ejsPrerender.writeHtml = writeHtml;
module.exports = ejsPrerender;
{
"name": "ejs-prerender",
"version": "1.0.3",
"version": "1.0.4-beta.1",
"description": "A tool for structured pre-rendering of EJS templates and partials",
"keywords": ["ejs", "prerender", "ssr"],
"keywords": [
"ejs",
"prerender",
"ssr"
],
"bin": {

@@ -24,2 +28,3 @@ "ejs-prerender": "bin/ejs-prerender.js"

"dependencies": {
"@piuccio/ejs-compiled-loader": "^3.0.0",
"debug": "^4.1.1",

@@ -26,0 +31,0 @@ "ejs": "^2.7.1",

@@ -27,4 +27,4 @@ # ejs-prerender

│ └ head.ejs
└ pages
├ about
└ pages/
├ about/
│ └ index.ejs

@@ -38,4 +38,4 @@ └ index.ejs

root
└ public
├ about
└ public/
├ about/
│ └ index.html

@@ -42,0 +42,0 @@ └ index.html

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc