Skip to content

Instantly share code, notes, and snippets.

View vmagamedov's full-sized avatar
💥
War time

Volodymyr Magamedov vmagamedov

💥
War time
View GitHub Profile

Setup

$ git clone https://gist.github.com/256bcfd64e47b27507d7.git
$ cd 256bcfd64e47b27507d7
$ virtualenv env && source env/bin/activate
$ pip install https://github.com/vmagamedov/kinko/archive/master.zip
$ npm install --save-dev browser-sync gulp gulp-stylus
$ gulp
class Env(jinja2.sandbox.SandboxedEnvironment):
def is_safe_attribute(self, obj, attr, value):
if isinstance(obj, basestring) and attr == 'format':
return False
return super(Env, self).is_safe_attribute(obj, attr, value)