cyril-verloop/templates-bundle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cyril-verloop/templates-bundle

最新稳定版本:1.1.0

Composer 安装命令:

composer require cyril-verloop/templates-bundle

包简介

Some basic templates for Symfony 7+.

README 文档

README

Templates for Symfony 7+.

License

Installation

As a Composer depedency

In your project directory run

user@host project$ composer require "cyril-verloop/templates-bundle"

For development purposes

user@host ~$ cd [PATH_WHERE_TO_PUT_THE_PROJECT] # E.g. ~/projects/
user@host projects$ git clone https://github.com/cyrilverloop/templates-bundle.git
user@host projects$ cd templates-bundle

Usage

With Symfony Flex, you do not need to add the configuration. Without Symfony Flex, the templates needs to be referenced in the config/packages/twig.yaml file :

twig:
    paths:
        '%kernel.project_dir%/vendor/cyril-verloop/templates-bundle/templates': CVTemplatesBundle

You can also look at the config/packages/twig.yaml file of this project.

Then, you can inherit the templates :

{% extends "@CVTemplatesBundle/base.html.twig" %}
{# or #}
{% extends "@CVTemplatesBundle/layout.html.twig" %}

{# Your code here #}

Detailed documentation

You can find detailed informations in the documentation.

统计信息

  • 总下载量: 353
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: Twig

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-17