Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Import or include simple txt file

Started by Muut Archive 11 years ago · 3 replies · 1616 views
11 years ago

I'm trying to just include a txt file with either html in it or css. Do I have to create a template for it the templates folder? It seems like I should just be able to pull it into one of the modular files using:

TWIG
{% include page.route ~ '/file.txt' ignore missing %}
11 years ago

Actually give me a few minutes, and i'll do it :)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2591 9 years ago
Archive · by Muut Archive, 9 years ago
2 1705 9 years ago
Archive · by Muut Archive, 9 years ago
2 4998 9 years ago
Archive · by Muut Archive, 9 years ago
1 3829 9 years ago
Archive · by Muut Archive, 9 years ago
3 1812 9 years ago