Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@webdiscus/pug-loader

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webdiscus/pug-loader - npm Package Versions

1
68

1.4.3

Diff

Changelog

Source

1.4.3 (2021-11-18)

  • refactor: cleanup code
webdiscus
published 1.4.2 •

Changelog

Source

1.4.2 (2021-11-18)

  • feat: add supports for require of JS and JSON data files in pug at compile time, e.g.:
    - var someData = require('some-data.json');
    each item in someData
      p= item.anyProperty
    
  • fix: issues by samples
webdiscus
published 1.4.1 •

Changelog

Source

1.4.1 (2021-11-17)

  • refactor: inner optimizations for the render method
webdiscus
published 1.4.0 •

Changelog

Source

1.4.0 (2021-11-16)

  • feat: add the option esModule to enable/disable ES modules syntax in generated JS modules
  • refactor: code improvements
webdiscus
published 1.3.1 •

Changelog

Source

1.3.1 (2021-11-15)

  • chore: update packages for examples
webdiscus
published 1.3.0 •

Changelog

Source

1.3.0 (2021-11-15)

  • feat: the render method has been improved. Now the method render a pug into HTML really at compile time without limitations for resolving an embedded resource. This method do same result as any other pug-loader + html-loader, even faster, generate smaller code and with all that not need an additional loader.
  • refactor: improve code
webdiscus
published 1.2.0 •

Changelog

Source

1.2.0 (2021-11-12)

  • feat: add the new loader method html to render the template function into pure HTML string,
    this method require additional loader, e.g. html-loader
  • chore: add directory with samples for usage this loader with Angular Component
webdiscus
published 1.1.1 •

Changelog

Source

1.1.1 (2021-11-10)

  • fix: config for tests
  • chore: cleanup tests
webdiscus
published 1.1.0 •

Changelog

Source

1.1.0 (2021-11-10)

  • feat: added supports for usage of compile or render methods in JavaScript:
    • added loader option method: render|compile to render into HTML or compile into a template function all templates required in js file
    • in the js require() can be used the query parameter ?pug-render to render the pug template directly into HTML, independent of loader option method,
      e.g. const html = require('template.pug?pug-render')
    • in the js require() query can be used the query parameter ?pug-compileto compile the pug template into a template function, independent of loader option method,
      e.g. const tmpl = require('template.pug?pug-compile')
  • feat: added the passing a custom data into a template at compile time:
    • added loader option data: {} to pass a data into all templates at compile time, e.g. useful for the i18n data
    • in the js require () query you can use URL key=value or JSON {key:value} parameters to pass them into the template at compile time,
      e.g. const tmpl = require('template.pug?key1=value1&{"key2":"value2","key3":"value3"}')
  • chore: update dependencies in package.json
webdiscus
published 1.0.1 •

Changelog

Source

1.0.1 (2021-10-20)

  • chore: update packages
  • docs: update readme
  • refactor: cleanup code
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc