Brought to you by Tighten Co.
Markdown files can use Blade syntax in them—for displaying data, control structures, etc.—by using the extension
.blade.md. Files with a
.blade.md extension will be processed first by the Blade engine, before the Markdown is parsed.
.blade.php templates can also use the
@include directive to include partials that are Markdown files. A Markdown partial that is included in a Blade template using
@include will be parsed by the Markdown parser first.
Other non-HTML, text-type files can also be processed with the Blade engine first, allowing you to dynamically generate non-HTML files that include variables and Blade control structures. Supported file extensions include
.blade.text. Note that after these file are first processed by Blade, the output file will maintain its filetype extension in the resulting URL; for example, a file named
some-file.blade.xml will be processed by Blade, then will be accessible at the URL