Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 547 Bytes

include.md

File metadata and controls

20 lines (13 loc) · 547 Bytes

Include

The include plugin allows Slim templates to include other files. The .slim extension is appended automatically to the filename. If the included file is not a Slim file, it is interpreted as a text file with #{interpolation}.

Example:

include partial.slim
include partial
include partial.txt

Enable the include plugin with

require 'slim/include'

Options

Type Name Default Purpose
Array :include_dirs [Dir.pwd, '.'] Directories where to look for the files