@webdiscus/pug-loader
Advanced tools
Comparing version 2.4.0 to 2.4.1
# 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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104695
1277