@express-tool/plugin-views
v2.0.1
Published
This plugin configures server-side rendering for `express-tool` applications, supporting popular template engines like EJS and Pug.
Readme
Express Tool Views Plugin
This plugin configures server-side rendering for express-tool applications, supporting popular template engines like EJS and Pug.
Installation
Select a template engine during project initialization. Manual install:
npm install @express-tool/plugin-viewsFeatures
- Template Engine Setup: Configures EJS or Pug as the view engine.
- Static Files: Sets up the
publicdirectory for CSS, images, and JS. - Example Views: Generates sample
indexanderrorviews.
Usage
Render views in your controllers:
res.render('index', { title: 'Home' });License
MIT
