Is it allowed to keep all functionality in just one default.html? #872
-
Hi all, My question is "Is it allowed to keep all functionality in just one default.html". The new template contains the files: Regards, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello Marcel! First of all: could you please edit the Title of your question and write there the text of the question? (i.e. "Is it allowed to keep all functionality in just one default.html?"). You should use the button Edit at the top right corner. Otherwise it is not clear from the title what you are asking for and the whole discussion risks being flagged and deleted. Regarding your question: I have never extensively worked with templates, but I imagine that having different files (default.html, header.html etc.) helps in keeping things in order and makes possible to reuse single fragments of template. But I do not see anything that prevents writing a default.html which contains all the required functionality. |
Beta Was this translation helpful? Give feedback.
-
Hello Giovanni Salmeri, Thanks for your reply, I've edited the title. To be honest this was my first post on GitHub ever! so I'll pay close attention to the title when I ask another question. Thank you for explaining my question, I put everything in 1 file. Regards, |
Beta Was this translation helpful? Give feedback.
Hello Giovanni Salmeri,
Thanks for your reply, I've edited the title. To be honest this was my first post on GitHub ever! so I'll pay close attention to the title when I ask another question.
Thank you for explaining my question, I put everything in 1 file.
Regards,
Marcel