Giter VIP home page Giter VIP logo

pug-static's Introduction

pug-static

Serve static Pug templates from an Express server.

Installing

It's an NPM package. You can just do the following.

npm install pug-static

Usage

Import it via node's require function.

var pugStatic = require('pug-static');

Then, you would simply add it as a used middleware when you configure your Express server.

var server = express();

// You can watch just about any folder to serve the static Pug files.
server.use(pugStatic("#{__dirname}/public/"));

Why?

This is a fork of jade-static, thanks shovon for the code! The project was renamed, so our team needed this.

What it does

  • Compiles JADE files on the fly.
  • Serves /path/index.pug when /path is requested.
  • Serves /path/index.pug when /path/index.html is requested.

What it doesn't do

  • No caching of any kind

License

MIT

pug-static's People

Contributors

adrieankhisbe avatar alexgorbatchev avatar shovon avatar vslinko avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

nicolasnarvaez

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.