Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Import or include simple txt file

Started by Muut Archive 11 years ago · 3 replies · 1429 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 1338 9 years ago
Archive · by Muut Archive, 9 years ago
2 927 9 years ago
Archive · by Muut Archive, 9 years ago
2 4056 9 years ago
Archive · by Muut Archive, 9 years ago
1 2941 9 years ago
Archive · by Muut Archive, 9 years ago
3 1112 9 years ago