footcas.blogg.se

Companies that use pug template
Companies that use pug template





companies that use pug template

  • pretty Add pretty-indentation whitespace to output (false by default).
  • compileDebug When false no debug instrumentation is compiled.
  • filename Used in exceptions, and required when using includes.
  • renderFile var html = pug.renderFile( 'filename.pug', merge(options, locals)) render var html = pug.render( 'string of pug', merge(options, locals)) compile var fn = pug.compile( 'string of pug', options) APIįor full API, see /api/reference.html var pug = require( 'pug') Pug - node template engine You are amazing Pug is a terse and simple templating language with a strong focus on performance and powerful features. Strong focus on performance and powerful features. Pug is a terse and simple templating language with a Pug is a clean, whitespace sensitive syntax for writing html. Installation PackageĪfter installing the latest version of Node.js, install with: $ npm install pug-cli -g The website and documentation for Pug are still being updated, but if you are new to Pug, you should get started with the new syntax and install the Pug package on npm. Such differences are documented at #2305. Currently, Pug 2.0.0 is still under beta stage, and there are several syntactic differences we have deprecated and removed. Therefore, upgrading from Jade to Pug will be the same process as upgrading any other package with a major version bump. We have then made it so that this new major version bump will coincide with the rename to Pug. If your package or app currently uses jade, don't worry: we have secured permissions to continue to occupy that package name, although all new versions will be released under pug.īefore the renaming, we had already begun working on an incompatible Jade 2.0.0. The next major version will carry "pug" as the package name.

    companies that use pug template

    After some discussion among the maintainers, "Pug" has been chosen as the new name for this project. This project was formerly known as "Jade." However, it has been revealed to us that "Jade" is a registered trademark, and as a result a rename is needed. For bug reports,įeature requests and questions, open an issue. Pug is a high performance template engine heavily influenced by HamlĪnd implemented with JavaScript for Node.js and browsers.







    Companies that use pug template