Last active
January 8, 2016 02:21
-
-
Save mattmcc/429d9c49278804724895 to your computer and use it in GitHub Desktop.
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
{% load sniplates %} | |
{% load_widgets core="widgets.html" _soft=True %} | |
{% block content %} | |
{% include "included_widget.html" %} | |
{% endblock %} |
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
{% load sniplates %} | |
{# 1.7+ fails without load_widgets here #} | |
{# {% load_widgets core="widgets.html" _soft=True %} #} | |
{% widget "core:alert" text="No boom today. Boom tomorrow." %} |
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
{% extends "base.html" %} | |
{% load sniplates %} | |
{% block content %} | |
{{ block.super }} | |
{% widget "core:alert" text="There's always a boom tomorrow." %} | |
{% endblock %} |
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
from django.conf.urls import patterns, include, url | |
from django.shortcuts import render | |
urlpatterns = patterns('', | |
url(r'^$', render, {'template_name': 'page1.html'}), | |
) |
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
{% block alert %} | |
<div class="alert">{{ text }}</div> | |
{% endblock alert %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment