Partials Components

The content is about managing partial components within the Vendora project, specifically stored in the [vendora-project-directory-name/HTML-Twig/src/twig/resources/partials/] folder. These partial components can be incorporated into other Twig files (in sections or pages).

Customizing a partial components file updates its component wherever it's include-ed, making it an effective way to modify commonly used components like footer or top navbar menus.

Users are advised to adhere to the given folder structure for customizing these partial contents.

Folder Structure
  • HTML-Twig //HTML Twig source files
    • src
      • twig
        • resources
          • partials
            • head-css.twig
            • head-title-meta.twig
            • vendor-scripts.twig
            • //other partials files here
Partials for Head
  • head-css.twig

    Contains a number of HTML <link> tags used to link to external style sheets (CSS files). You can add links to new external CSS files here.

    By default it is include-ed on : every page that extends layouts/default.twig.

  • head-title-meta.twig

    Contains a number of HTML <meta> tags and a <title> tag. You can add another meta tag or change the HTML document title format here. a <link> for favicon is also defined here.

    By default it is include-ed on : every page that extends layouts/default.twig.

Partials of Vendors Scripts
  • vendor-scripts.twig

    Contains a number of HTML <script> tags used to embed scripts from external sources. You can embed the new script in this file.

    By default it is include-ed on : every page that extends layouts/default.twig.