mindy / theme-bundle
mindy 主题管理器
0.1
2018-01-18 19:49 UTC
Requires
- mindy/mindy-bundle: ~4.0
- mindy/template-bundle: ~4.0
Requires (Dev)
- phpunit/phpunit: ^6.5
- symfony/framework-bundle: ^3.4
- symfony/security-bundle: ~3.0
This package is not auto-updated.
Last update: 2024-09-15 04:21:01 UTC
README
版本策略 && manifest.json
要处理静态和 manifest.json 的版本,请指定以下内容
framework: assets: version_strategy: 'Mindy\Bundle\ThemeBundle\VersionStrategy\ThemeJsonManifestVersionStrategy'
在安装主题时,静态将按照以下路径安装
%kernel.project_dir%/public/themes/__name__
其中 __name__
是主题名称
Manifest
Manifest 包含主题描述、名称和作者
主题预览
主题预览通过 cookie
工作。要启用预览,需要设置名为 __theme_preview
的 cookie,其值为主题名称