On 09/17/2015 10:49 PM, Christian Oyarzun wrote:
# HG changeset patch
# User Christian Oyarzun <[email protected] <mailto:[email protected]>>
# Date 1442522796 14400
#      Thu Sep 17 16:46:36 2015 -0400
# Node ID b10f6c0a01fce20452947caf45d661a4ed101ce5
# Parent  889ff0f436c8b57f5962e204e699cbabc6d33aac
codemirror: fix model when using proxy prefix issue #160

We have other places in base.js where we use pyroutes.url to create URLs to "controllers" defined in root.html . I think we should do the same for this purpose.

Instead of overloading 'home', I think we should add a 'static_files' routing and make it something like

CodeMirror.modeURL = pyroutes.url('static_files'') + "/codemirror/mode/%N/%N.js";

Would that work?

/Mads

_______________________________________________
kallithea-general mailing list
[email protected]
http://lists.sfconservancy.org/mailman/listinfo/kallithea-general

Reply via email to