$ 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
This file contains hidden or 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
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) |
NewerOlder