polysource/twig-theme
最新稳定版本:v0.1.2
Composer 安装命令:
composer require polysource/twig-theme
包简介
Polysource Admin — default Twig theme. Pure templates and CSS, no PHP.
关键字:
README 文档
README
Default Twig theme for polysource/symfony-bundle.
This package contains only templates and CSS — no PHP. The
polysource/symfony-bundle package registers its templates/ directory
under the @Polysource Twig namespace at boot.
Layout
templates/
├── layout.html.twig — base layout (Bootstrap 5 CDN)
├── index.html.twig — resource index page
├── detail.html.twig — single-record detail page
├── error.html.twig — generic error page
├── paginator.html.twig — offset + cursor paginators
├── _navigation.html.twig — top header partial
├── _flash.html.twig — Symfony flash messages partial
└── field/
├── text.html.twig
├── boolean.html.twig
├── datetime.html.twig
├── code.html.twig
├── id.html.twig
└── generic.html.twig — fallback for unconfigured fields
Customising
Override any template by re-registering its name in the host application's
own Twig theme path with higher priority. Polysource resolves
@Polysource/index.html.twig so any matching path wins.
License
MIT — see LICENSE. See ATTRIBUTIONS.md for upstream credits.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-10