Skip to content

Files

This branch is 46883 commits behind github/docs:main.

includes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 30, 2021
Sep 27, 2020
Mar 9, 2021
Mar 9, 2021
Sep 27, 2020
Jan 29, 2021
Feb 8, 2021
Mar 12, 2021
Feb 5, 2021
Dec 7, 2020
Mar 25, 2021
Nov 17, 2020
Dec 7, 2020
Oct 15, 2020
Feb 9, 2021
Sep 27, 2020
Sep 27, 2020
Oct 27, 2020
Mar 15, 2021
Sep 29, 2020
Sep 29, 2020
Sep 29, 2020
Sep 29, 2020
Sep 29, 2020
Sep 29, 2020
Sep 29, 2020
Sep 27, 2020
Sep 29, 2020
Sep 29, 2020
Sep 29, 2020
Sep 29, 2020
Sep 27, 2020
Sep 29, 2020
Dec 2, 2020
Mar 17, 2021
Feb 8, 2021
Apr 8, 2021
Apr 8, 2021
Feb 18, 2021
Jan 8, 2021
Jan 25, 2021
Sep 27, 2020
Jan 14, 2021
Nov 3, 2020
Sep 27, 2020
Sep 27, 2020
Feb 9, 2021
Feb 11, 2021
Jan 20, 2021
Dec 15, 2020
Sep 29, 2020
Jan 8, 2021
Jan 8, 2021
Mar 15, 2021
Feb 11, 2021
Feb 11, 2021

Includes

The files in this directory are "includes", snippets of HTML that can be reused in multiple layouts or pages. In Ruby on Rails parlance, these are called "partials".

Using Includes

This example injects the contents of includes/header.html into the page:

{% include header %}

Writing Includes

Includes must have a .html extension.