Created
May 4, 2017 10:21
-
-
Save sgarcez/148ee877fa5311946208389757aa4e4d to your computer and use it in GitHub Desktop.
mako conditional inheritance
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
<%! | |
def inherit_base(context): | |
if not context.get('request').is_xhr: | |
return "./base.mako" | |
%> | |
<%inherit file="${inherit_base(context)}"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment