Last active
August 29, 2015 14:25
-
-
Save bobdenotter/258f97079c0026654c81 to your computer and use it in GitHub Desktop.
hackishly using SQL in Twig templates in Bolt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% set stmt = app.db.query("SELECT id FROM bolt_pages;") %} | |
{% for row in stmt.fetchAll() %} | |
{% setcontent page = "pages" where {'id': row.id } %} | |
{{ dump(page) }} | |
<hr> | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment