The Wayback Machine - https://web.archive.org/web/20200319191252/https://github.com/topics/ejs
Skip to content
#

ejs

Here are 1,455 public repositories matching this topic...

ezsystemspt
ezsystemspt commented Mar 10, 2020

I had to check the source code to find out that if you pass false to the layout parameter, you can render the template without using the layout. I would suggest to put it on the README.md as well.

Usage Example:

// Not Found (404)
app.use(function(req, res) {
  res.status(404).render('error-404', { layout: false }); // Don't use any layouts for 404 error pages
});
scriptjs
scriptjs commented Feb 2, 2016

Hello, you may add the following note for webpack 2 usage. Please add my github name as a contributor to the package if you decide to include this in your docs.


Note that ‘with’ that is deprecated in es6. For webpack 2 usage, you must pass an option in your query strict=true or _with=false that will disable with in the ejs package.

Examples:
strict=true

import tmpl1 from '!!../?stri

AKA ShareS - Feature full & Stable ShareX and file server in node. Includes images, videos, code, text, markdown rendering, password protected uploads, logging via discord, administration through Discord, url shortening, and a full front end. Use standalone or via reverse proxy

  • Updated Feb 22, 2020
  • JavaScript

Improve this page

Add a description, image, and links to the ejs topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the ejs topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.