So I recently noticed that in some Magento 2 modules, there are two different template folders:
- the
view/frontend/templates
contains.phtml
files and I know that this pretty much matches the M1app/design/frontend/<package>/<theme>/templates
folder for each module. - the
view/frontend/web/template
contains.html
files
My questions are:
- What is that second folder used for ?
- And more specifically, why aren't those files in the first folder ?
- Or, if I reword that, what is the reason why there are two different templates folders ?
This question is an overall architectural question. It is not regarding the specific content of a given theme.
pub/static
)