Socket
Book a DemoInstallSign in
Socket

@marlonmarcello/snowpack-plugin-pug

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marlonmarcello/snowpack-plugin-pug

This plugin adds support for the [Pug](https://pugjs.org/) template engine to Snowpack.

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

@marlonmarcello/snowpack-plugin-pug

This plugin adds support for the Pug template engine to Snowpack.

Install

npm install --save-dev @marlonmarcello/snowpack-plugin-pug

Usage

Add @marlonmarcello/snowpack-plugin-pug to your Snowpack config file:

{
  "plugins": ["@marlonmarcello/snowpack-plugin-pug"]
}

Options

You can pass all default Pug Options plus:

  • data: object - Any data that you would like available globaly to templates

Example

{
  "plugins": [
    [
      "@marlonmarcello/snowpack-plugin-pug",
      {
        "data": {
          "meta": {
            "title": "My website"
          }
        }
      }
    ]
  ]
}
doctype html
html(lang="en")
  head
    meta(charset="UTF-8")
    meta(name="viewport", content="width=device-width, initial-scale=1.0")
    title!=meta.title
  body
    //- template

Keywords

snowpack

FAQs

Package last updated on 21 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts