0.1.3 • Published 5 years ago

saber-plugin-transformer-pug v0.1.3

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

saber-plugin-transformer-pug

Write pages in Pug and add support for importing Pug files

Install

yarn add saber-plugin-transformer-pug

Usage

In your saber-config.yml:

plugins:
  - resolve: saber-plugin-transformer-pug

Try it by populating a pages/try.pug:

strong hello world

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
---

strong hello
i world

Using Pug in Vue SFC template block

<template lang="pug">
  p hello world
</template>

License

MIT.