Hello, I am doing my first steps in Processwire and the first thing I tried is this module. Let me tell you guys that this is a very interesting module. I like it very much. For the moment I just found something very strange, please let me know if you can help me with this.
Sorry for my english :/
I am using the module Template Engine Factory and Template Engine Twig as main template engine.
My files structure
/templates
/controllers
home.php
basic-page.php
/views
home.html
basic-page.html
/structure
main.html
head.html
foot.html
home.html
{% extends "structure/main.html" %}
{% block content %}
<div id="home-content">
{{ page.body }}
</div>
{% endblock content %}
/structure/main.html
<!DOCTYPE html>
<html>
<!-- head -->
{% include 'structure/head.html' %}
<body>
<div id="main">
<h1>
{% block title %}
{{ page.title }}
{% endblock title %}
</h1>
{% block content %}
No content
{% endblock content %}
</div><!--/#main-->
<!-- footer -->
{% include "structure/foot.html" %}
</body>
</html>
My problem:
When I reload the page everything is ok (please see the screenshot home.png), but when I reload the page one more time, after the page is cached I think, I got the following error (please see the screenshot error.png).
content of cached page on line 88 (please see the screenshot cached_page.png and dir_FileCompiler_cached_page.png)
If I change the include Twig function to include my header.html and footer.html for this one embed everything is ok. But I need to use include instead of embed.
Thank you for your patience and I hope someone can help me :).