0.1.3 • Published 5 years ago

saber-plugin-transformer-html v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
5 years ago

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.