{"_id":"@alterjs/saber-plugin-transformer-html","name":"@alterjs/saber-plugin-transformer-html","dist-tags":{"latest":"0.13.0"},"versions":{"0.13.0":{"name":"@alterjs/saber-plugin-transformer-html","version":"0.13.0","description":"Write pages in HTML","license":"MIT","repository":{"type":"git","url":"git+https://github.com/chawyehsu/saber.git"},"exports":{".":{"import":"./dist/index.min.mjs","require":"./dist/index.min.cjs"}},"main":"./dist/index.min.cjs","module":"./dist/index.min.mjs","scripts":{"build":"rimraf dist && rollup -c","build:example":"saber build example","lint":"eslint src","prepublishOnly":"npm run build"},"peerDependencies":{"@alterjs/saber":"^0.13.0"},"dependencies":{"@alterjs/extract-sfc-blocks":"^0.13.0"},"publishConfig":{"access":"public"},"_id":"@alterjs/saber-plugin-transformer-html@0.13.0","gitHead":"df690b0df6c45372cb41b7fa42003f08edc08bf5","bugs":{"url":"https://github.com/chawyehsu/saber/issues"},"homepage":"https://github.com/chawyehsu/saber#readme","_nodeVersion":"18.20.4","_npmVersion":"10.7.0","dist":{"integrity":"sha512-XK6u2qgNq6NbSoHgEWjVdMHlZ3UcBkvtGgDsLLDjVTbU4ouum6T8/pJXWny1t5eu7nIMJUyohDec07y6QBYnxA==","shasum":"d6944d13dccba93e54227ac568fa2666ce058f24","tarball":"https://registry.npmjs.org/@alterjs/saber-plugin-transformer-html/-/saber-plugin-transformer-html-0.13.0.tgz","fileCount":5,"unpackedSize":3543,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFtGTAqaNbziN5QTe+0u+0BsN1Rj9IQ5RWoxH5U1ynVQAiEAtj9X3SXI1nf0kttxZxnxw+GIF46rVgfTtHtExgvs3v4="}]},"_npmUser":{"name":"chawyehsu","email":"su+npm@chawyehsu.com"},"directories":{},"maintainers":[{"name":"chawyehsu","email":"su+npm@chawyehsu.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/saber-plugin-transformer-html_0.13.0_1737181262675_0.23646373250829011"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-18T06:21:02.601Z","0.13.0":"2025-01-18T06:21:02.881Z","modified":"2025-01-18T06:21:03.306Z"},"maintainers":[{"name":"chawyehsu","email":"su+npm@chawyehsu.com"}],"description":"Write pages in HTML","homepage":"https://github.com/chawyehsu/saber#readme","repository":{"type":"git","url":"git+https://github.com/chawyehsu/saber.git"},"bugs":{"url":"https://github.com/chawyehsu/saber/issues"},"license":"MIT","readme":"# @alterjs/saber-plugin-transformer-html\n\nWrite pages in HTML.\n\n## Install\n\n```bash\nyarn add @alterjs/saber-plugin-transformer-html\n```\n\n## Usage\n\nIn your `saber-config.yml`:\n\n```yml\nplugins:\n  - resolve: '@alterjs/saber-plugin-transformer-html'\n```\n\nTry it by populating a `pages/try.html`:\n\n```html\n<strong>hello world</strong>\n```\n\nThis page will be rendered as `/try.html`.\n\nLike Markdown pages, you can only use frontmatter to define page data:\n\n```html\n---\ntitle: Try it\nlayout: try\n---\n\n<button @click=\"count++\">{{count}}</button>\n\n<script>\n  export default {\n    data() {\n      return {\n        count: 0,\n      }\n    },\n  }\n</script>\n\n<style scoped>\n  button {\n    color: red;\n  }\n</style>\n```\n\n## License\n\nMIT.\n","readmeFilename":"README.md"}