{"_id":"@alterjs/saber-plugin-transformer-pug","name":"@alterjs/saber-plugin-transformer-pug","dist-tags":{"latest":"0.13.0"},"versions":{"0.13.0":{"name":"@alterjs/saber-plugin-transformer-pug","version":"0.13.0","description":"Write pages in Pug and add support for importing Pug files","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 && node scripts/build.js","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","pug":"^3.0.3","pug-plain-loader":"^1.0.0"},"devDependencies":{"@types/pug":"^2.0.10"},"publishConfig":{"access":"public"},"_id":"@alterjs/saber-plugin-transformer-pug@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-RTN4bOwZ0ay2ohpRKSqdQ5yIVqkl46OYLDZJKBLz7BuJQa1DroR4UInLrv0a7db443Z7XxT1qsaSHGlAZqN0EA==","shasum":"afa5856caf06c165a56dcb683ec2a6497915bdc3","tarball":"https://registry.npmjs.org/@alterjs/saber-plugin-transformer-pug/-/saber-plugin-transformer-pug-0.13.0.tgz","fileCount":6,"unpackedSize":4524,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRJuguSQ8SyiFY1Wj7OZYWgCJMMywZ/Xu5XF2PoES4EAIhAM8KtxuvXkuAEWz54mXjeYuePdhR5mkJhXWNSDHYe+sO"}]},"_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-pug_0.13.0_1737181276037_0.3533726508113604"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-18T06:21:15.970Z","0.13.0":"2025-01-18T06:21:16.235Z","modified":"2025-01-18T06:21:16.474Z"},"maintainers":[{"name":"chawyehsu","email":"su+npm@chawyehsu.com"}],"description":"Write pages in Pug and add support for importing Pug files","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-pug\n\nWrite pages in Pug and add support for importing Pug files\n\n## Install\n\n```bash\nyarn add @alterjs/saber-plugin-transformer-pug\n```\n\n## Usage\n\nIn your `saber-config.yml`:\n\n```yml\nplugins:\n  - resolve: '@alterjs/saber-plugin-transformer-pug'\n```\n\nTry it by populating a `pages/try.pug`:\n\n```pug\nstrong hello world\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```pug\n---\ntitle: Try it\nlayout: try\n---\n\nstrong hello\ni world\n```\n\n### Using Pug in Vue SFC template block\n\n```vue\n<template lang=\"pug\">\n  p hello world\n</template>\n```\n\n## License\n\nMIT.\n","readmeFilename":"README.md"}