This is an anti-pattern explicitly called out in the SqlAlchemy documents.
### this is the **wrong way to do it** ###
class ThingOne(object):
def go(self):
session = Session()
<!-- this breaks --> | |
<div> | |
<div class="row-fluid"> | |
<sd:directive ng-repeat="x in list" param="x" /> | |
<h1>Hello?</h1> | |
</div> | |
</div> | |
<!-- one working alternative --> | |
<div> |
This is an anti-pattern explicitly called out in the SqlAlchemy documents.
### this is the **wrong way to do it** ###
class ThingOne(object):
def go(self):
session = Session()
import string | |
import sys | |
import logging | |
import json | |
from flask import Flask | |
from flask import Response, request | |
logger = logging.getLogger(__name__) | |
logger.info("Stackdriver webhook-sample starting up on %s" % (string.replace(sys.version, '\n', ' '))) |
(function (app, $, backbone, marionette, options, undefined) { | |
app = new marionette.Application(); | |
app.addInitializer(function () { | |
app.Log("configuring marionette template compiler"); | |
marionette.TemplateCache.prototype.compileTemplate = function (rawTemplate) { | |
return Hogan.compile(rawTemplate); | |
}; | |
}); |