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

Base

This template extends no other template and has a <!DOCTYPE html>.

How to extend ?

{% extends "[@CVTemplatesBundle](https://github.com/CVTemplatesBundle)/base.html.twig" %}

{# Your code here #}

See also Usage for the Symfony configuration.

Blocks

  • head : is inside the <head>, it contains every other blocks and variables except the {% block body %};
  • favicon : is inside the {% block head %} and is empty;
  • preloads : is inside the {% block head %} and is empty;
  • importmap : is inside the {% block head %} and is empty;
  • stylesheets : is inside the {% block head %} and is empty;
  • javascripts : is inside the {% block head %} and is empty;
  • body : is inside the <body> and is empty.

Variables

Those HTML tags are rendered only if you define the corresponding variable in your template :

  • charset : <meta charset="{{ charset }}" />;
  • viewport : <meta name="viewport" content="{{ viewport }}" />;
  • baseUrl : <base href="{{ baseUrl }}" />;
  • htmlHeadTitle : <title>{{ htmlHeadTitle }}</title>;
  • metaDescription : <meta name="description" content="{{ metaDescription }}" />;
  • canonical : <link rel="canonical" href="{{ canonical }}" />.

This is always rendered :

  • app.request.locale : <html lang="{{ app.request.locale|replace({'_': '-'}) }}">, defined in Symfony configuration. The replace filter converts locales like en_GB into en-GB. It is necessary in order to pass W3C validation.
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.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle