1.5.3 • Published 4 years ago
hyperpug v1.5.3
HyperPug
Lighter Pug for browser/Electron. With Pug filters' support.
Usage
import HyperPug from 'hyperpug'
const hp = new HyperPug()
console.log(hp.parse(HYPERPUG_STRING))
Usage with filters
Filters are normalized for Markdown and other indented languages are well.
import HyperPug from 'hyperpug'
const hp = new HyperPug({
markdown: (s) => {
return markdownMaker(s)
}
})
console.log(hp.parse(HYPERPUG_STRING))
Usage on the browser
<div id="hyperpug"></div>
<script src="https://unpkg.com/hyperpug"></script>
<script>
const hp = new HyperPug({
markdown: (s) => {
return markdownMaker(s)
}
})
document.getElementById("hyperpug").innerHTML = hp.parse(`
style.
.red {
color: red;
}
section {
margin-bottom: 1rem;
}
section(class="x")
div hello
blockquote
.red goodbye
:markdown
# This is some heading
br
small Yes, this is a good idea.
`)
</script>
1.5.3
4 years ago
1.5.2
4 years ago
1.5.1
4 years ago
1.5.0
4 years ago
1.4.1
4 years ago
1.4.0
4 years ago
1.3.2
4 years ago
1.3.1
4 years ago
1.3.0
4 years ago
1.2.0
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago
0.2.1
5 years ago
0.2.0
5 years ago
0.1.7
5 years ago
0.1.6
5 years ago
0.1.5
5 years ago
0.1.4
5 years ago
0.1.3
5 years ago
0.1.2
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago