A Disqus alternative https://posativ.org/isso/
9618c0f3a3
Use of eval is handy when we need to automatically reload a template. However, in production, this is slow and unsafe. Moreover, when using CSP, we have to use 'unsafe-eval' which brings shame to most of us. It appears use of eval() is not needed because the template has already been translated to Javascript. We just need to bind "jade" to its local scope. So, we add an additional wrapper function binding "jade" to the local scope. Moreover, when compiling the template, we add a flag to the function to know it has already been compiled. In this case, we execute it with "jade" in its scope. Otherwise, we keep using eval. Quickly tested in both situations. Seem to work. Fix #274. |
||
---|---|---|
.tx | ||
ansible | ||
bin | ||
docs | ||
isso | ||
share | ||
.gitignore | ||
.travis.yml | ||
apidoc.json | ||
CHANGES.rst | ||
CONTRIBUTING.rst | ||
CONTRIBUTORS.txt | ||
LICENSE | ||
Makefile | ||
MANIFEST.in | ||
README.md | ||
setup.cfg | ||
setup.py | ||
tox.ini | ||
uwsgi.ini | ||
Vagrantfile |
Isso – a commenting server similar to Disqus
Isso – Ich schrei sonst – is a lightweight commenting server written in Python and JavaScript. It aims to be a drop-in replacement for Disqus.
See posativ.org/isso for more details.