Commits

Miki Tebeka  committed fb02ded

Aliases

  • Participants
  • Parent commits e3aa154

Comments (0)

Files changed (3)

             Some random text here ...
         </p>
     </body>
-    <script src="http://localhost:8080/highlight"></script>
+    <script src="http://localhost:8080/highlight.js"></script>
 </html>

File highlight.js

 }
 
 function on_ready() {
-    var url = '<link type="text/css" href="http://localhost:8080/css" ' +
+    var url = '<link type="text/css" href="http://localhost:8080/highlight.css" ' +
               'rel="stylesheet" />'
     $('head').append($(url))
     highlight();
         formatter = HtmlFormatter(linenos=linenos, cssclass="source")
         return highlight(code, lexer, formatter)
 
-    @expose
+    @expose(alias="highlight.css")
     @tools.response_headers(headers=[("Content-Type", "text/css")])
     def css(self, **kw):
         return HtmlFormatter().get_style_defs()
 
-    @expose
+    @expose(alias="highlight.js")
     @tools.response_headers(headers=[("Content-Type", "application/json")])
     def highlight(self, **kw):
         with open("jquery.js") as fo: