dragonmantank / fillet-sculpin-bundle
Fillet 的包装器,用于与 Sculpin 集成
v0.1.0
2015-05-20 22:19 UTC
Requires
- dragonmantank/fillet: ^0.1
This package is auto-updated.
Last update: 2024-09-21 19:37:59 UTC
README
此捆绑包允许将 Fillet 直接集成到 Sculpin 中。
当前支持的解析器
- WordpressExport
示例用法
将捆绑包添加到您的站点 sculpin.json
文件
"require": {
"dragonmantank/fillet-sculpin-bundle": "~0.1"
},
并更新 sculpin 的依赖项
php sculpin.phar update
这将拉取 Fillet 所需的文件。然后您需要通过将其添加到您的 app/SculpinKernel.php
文件中来将捆绑包添加到 Sculpin 中。如果此文件不存在,您可以使用以下内容开始操作
<?php class SculpinKernel extends \Sculpin\Bundle\SculpinBundle\HttpKernel\AbstractKernel { protected function getAdditionalSculpinBundles() { return array( 'Fillet\FilletBundle\FilletBundle', ); } }
您现在可以通过以下方式调用 Fillet
php sculpin.phar fillet:fillet --file=path/to/file.xml --parser=WordpressExport
Fillet 将解析文件并生成输出!假设一切顺利...
更新 sculpin.phar!
如果您尝试此操作时遇到问题并遇到运行更新时的 sculpin.phar 错误,您可能需要将 sculpin.phar 更新为 2015-02-26 之后构建的版本。这影响了使用博客脚手架的人,因为拉入的一些依赖项与 Sculpin 的旧版本不兼容。现在已经修复了这个问题,所以只需更新 sculpin.phar 即可。