I have downloaded some sample tpl files from the internet, i wanted to customise menu on my site thus i was trying to create new base.tpl file. However when I have saved it bottle does not want to read it and and return that:
bottle.TemplateError: Template 'base.tpl' not found.
Strange thing is that one is percived as rtf file and the other one (base.tpl downloaded from the internet) as the exec file. Why is that and how to fix this? Screenshot bellow:
I am referring to them with:
return template('base')
. My educated guess is that it is textedit problem (I am using macOS) as it is trying to interpret the file and does not show the real html/tpl content.
Templates are regular bottle tpl files, nothing extraordinary they are saved in my project directory.
As to the directory list
However what I did is downloaded a different text editor then TextEdit and opened it in both in TextEdit you have:
Whereas in Atom text editor it looks like this:
Nevertheless files that were not created in TextEdit work perfectly fine.