# vext **Repository Path**: ntksol/vext ## Basic Information - **Project Name**: vext - **Description**: Velocity for express.js - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-10-29 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # VEXT Velocity for express.js ## Usage First of all, install it with npm. ```bash npm install --save-dev vext ``` Then write some codes in the entry file of express.js, such as `app.js`. ```js var vext = require("vext"); // Set Velocity as the view engine app.set("view engine", "vm"); // Use VEXT to render files app.engine("vm", vext.__express); ``` You can view [examples](./examples) for detail. ;-) ## APIs There is only one API now. :-( ### .set(key, value) To rewrite the default settings of VEXT. ```js // The default layout is `template/layouts/default.vm`, // to change it to `template/layouts/admin.vm`. vext.set("layout", "template/layouts/admin.vm"); ```