paneon / php-vue-to-twig
0.32.2
2022-01-04 10:22 UTC
Requires
- php: ^7.3|^8.0
- ext-dom: *
- ext-libxml: *
- ramsey/uuid: ^3.8
- scssphp/scssphp: ^1.9
- squizlabs/php_codesniffer: ^3.3
Requires (Dev)
- ext-simplexml: *
- friendsofphp/php-cs-fixer: ^2.16
- monolog/monolog: ^1.24
- phpstan/phpstan: ^0.12
- phpunit/phpunit: ^9
- dev-master
- 0.32.2
- 0.32.1
- 0.32.0
- 0.31.5
- 0.31.4
- 0.31.3
- 0.31.2
- 0.31.1
- 0.31.0
- 0.30.0
- v0.29.3
- 0.29.2
- 0.29.1
- 0.29.0
- 0.28.1
- 0.28.0
- 0.27.2
- 0.27.1
- 0.27.0
- 0.26.1
- 0.26.0
- 0.25.6
- 0.25.5
- 0.25.4
- 0.25.3
- 0.25.2
- 0.25.1
- 0.25.0
- 0.24.1
- 0.24.0
- 0.23.0
- 0.22.1
- 0.22.0
- 0.21.0
- 0.20.1
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.2
- 0.17.1
- 0.17.0
- 0.16.1
- 0.16.0
- 0.15.1
- 0.15.0
- 0.14.3
- 0.14.2
- 0.14.1
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.1
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- v0.2.1
- v0.2
- dev-feature/php8
- dev-Macavity-patch-1
- dev-Add-actions
- dev-bugfix/props
- dev-feature/phpstan
- dev-feature/filters
- dev-develop
- dev-bugfix/missing-spaces
- dev-feature/twig-block
- dev-feature/slots
- dev-feature/required-props
- dev-feature/double-attribute-binding
- dev-feature/template-strings
- dev-feature/SHODEVS2-26
- dev-feature/SHODVES2-122
This package is auto-updated.
Last update: 2024-09-04 16:13:56 UTC
README
使用PHP将Vue文件编译为Twig模板
指令
其他功能
限制
难以解释JavaScript语言特性并将其转换为Twig。
例如,在属性绑定中的字符串连接当前不正常:🚫
此示例正常工作
<template> <div :style="'fontSize: ' + (size + 10) + 'px'"></div> </template> <script> export default { props: { size: { type: number, required: true, }, }, }; </script>
<div style="{{ 'fontSize: ' ~ (size + 10) ~ 'px' }};"></div>
但此示例不正确
<template> <div :style="'fontSize: ' + (foo.size + 10) + 'px'"></div> </template> <script> export default { props: { foo: { type: object, required: true, }, }, }; </script>
<div style="{{ 'fontSize: ' ~ (foo.size ~ 10) ~ 'px' }};"></div>