@alterjs/saber-plugin-transformer-html
v0.13.0
Published
Write pages in HTML
Readme
@alterjs/saber-plugin-transformer-html
Write pages in HTML.
Install
yarn add @alterjs/saber-plugin-transformer-htmlUsage
In your saber-config.yml:
plugins:
- resolve: '@alterjs/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.
