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.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui