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 Compare versions

Comparing version 2.4.0 to 2.4.1

8

CHANGELOG.md
# Change log
## 2.4.0 (2022-05-24)
- feat: add support the Pug in Vue template
## 2.4.1 (2022-05-25)
- docs: update readme
## 2.4.0 (2022-05-25)
- feat: add support the Pug in Vue
- feat: add support an indent in Vue template for Pug code
- chore: add usage example for Pug in Vue template

@@ -6,0 +10,0 @@ - test: add test for remove unexpected indents in Vue template

{
"name": "@webdiscus/pug-loader",
"version": "2.4.0",
"version": "2.4.1",
"description": "Pug loader renders Pug files into HTML or compiles them into a template function.",

@@ -88,2 +88,2 @@ "keywords": [

}
}
}

@@ -50,4 +50,5 @@ <div align="center">

>
> See [setup](#usage-with-vue) and [usage example](https://github.com/webdiscus/pug-loader/tree/master/examples/hello-world-vue).
> See [how to use Pug with Vue](#usage-with-vue) and [sources of usage example](https://github.com/webdiscus/pug-loader/tree/master/examples/hello-world-vue).
<br>

@@ -71,10 +72,10 @@ > πŸ’‘ **Recommended** to use the [pug-plugin](https://github.com/webdiscus/pug-plugin).\

3. [Usage of methods](#method-compile)
- [compile](#method-compile)
- [render](#method-render)
- [html](#method-html)
- [compile](#method-compile)
- [render](#method-render)
- [html](#method-html)
4. [Usage of Pug filters](#embed-filters)
- [:escape](#filter-escape)
- [:code](#filter-code)
- [:highlight](#filter-highlight)
- [:markdown](#filter-markdown)
- [:escape](#filter-escape)
- [:code](#filter-code)
- [:highlight](#filter-highlight)
- [:markdown](#filter-markdown)
5. [Passing data into Pug template](#passing-data-into-template)

@@ -1151,3 +1152,3 @@ 6. [Usage of embedded resources](#usage-embedded-resources)

exclude: /\.vue$/,
loader: '../../',
loader: '@webdiscus/pug-loader',
options: {

@@ -1160,3 +1161,3 @@ method: 'compile', // compile Pug into template function

{
loader: '../../',
loader: '@webdiscus/pug-loader',
options: {

@@ -1178,6 +1179,6 @@ method: 'html', // render Pug into pure HTML string

```html
<templatΠ΅ lang='pug'>
<template lang='pug'>
h1 Hello Pug!
p Paragraph
</templatΠ΅>
</template>
```

@@ -1184,0 +1185,0 @@ **Note:** you can use an indent for Pug code in Vue template.

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