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.
graham-campbell/flysystem
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
directorytree/opensearch-client
directorytree/opensearch-adapter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin