Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Templates Bundle Laravel Package

cyril-verloop/templates-bundle

View on GitHub
Deep Wiki
Context7

templates-bundle

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.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
comsave/common
alecsammon/php-raml-parser
chrome-php/wrench
lendable/composer-license-checker
typhoon/reflection
mesilov/moneyphp-percentage
mike42/gfx-php
bookdown/themes
aura/view
aura/html
aura/cli
povils/phpmnd
nayjest/manipulator
omnipay/tests
psr-mock/http-message-implementation
psr-mock/http-factory-implementation
psr-mock/http-client-implementation
voku/email-check
voku/urlify
rtheunissen/guzzle-log-middleware