Skip to content

Instantly share code, notes, and snippets.

@cam-stitt
Created October 16, 2014 04:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cam-stitt/3c5ee6828e4ef6685ef0 to your computer and use it in GitHub Desktop.
Save cam-stitt/3c5ee6828e4ef6685ef0 to your computer and use it in GitHub Desktop.
Example For Block Rendering
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>Example</title>
{% block styles %}{% endblock %}
{% block scripts %}{% endblock %}
</head>
<body>
<div class="view-container">
{% block view_container %}
{% block navbar %}
<nav>
<ul>
{% block navitems %}
{% endblock %}
</ul>
</nav>
{% endblock %}
<div class="main-content">
{% block main_content %}
<div class="message">
{% block messages %}
{% include "shared/messages.html" %}
{% endblock %}
</div>
<div class="content">
{% block content %}
{% include content_template %}
{% endblock %}
</div>
{% endblock %}
</div>
{% block async_script %}
{% endblock %}
{% endblock %}
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment