saber-plugin-transformer-html
v0.1.3
Published
Write pages in HTML
Downloads
9
Readme
saber-plugin-transformer-html
Write pages in HTML.
Install
yarn add saber-plugin-transformer-html
Usage
In your saber-config.yml
:
plugins:
- resolve: saber-plugin-transformer-html
Try it by populating a pages/try.html
:
<strong>hello world</strong>
This page will be rendered as /try.html
.
Like Markdown pages, you can only use frontmatter to define page data:
---
title: Try it
layout: try
---
<button @click="count++">{{count}}</button>
<script>
export default {
data() {
return {
count: 0
}
}
}
</script>
<style scoped>
button {
color: red;
}
</style>
License
MIT.