View default.html
1 2 3 4 5 6 7
<!--
This is the default file visible at <your-project-name>.asyncode.com/
File location: <your-project-folder>/frontend/fragments/default.html
-->
<div id="myPart">Nothing here yet!</div>
 
<a href="/hello" ac-target="#myPart" ac-datasource="/myData">Load hello</a>
View methods.py
1 2 3 4 5 6 7 8 9
def a():
print 4
 
x={
"method":a
}
 
x["method"]()
# >>> 4
View doc.write.js
1 2 3 4 5 6
document.write=function(s){
var scripts = document.getElementsByTagName('script');
var lastScript = scripts[scripts.length-1];
//alert("loading: " + scriptName);
lastScript.insertAdjacentHTML("beforebegin", s);
}
View gist:7294054
1 2 3 4 5 6 7 8 9 10
<?xml version="1.0" encoding="UTF-8"?>
<view xmlns="http://asyncode.com/View"
xmlns:mg="http://asyncode.com/Mongo"
xmlns:op="http://asyncode.com/Interpreter"
inherits="_super_">
<set name="pageName">Getting started with Clouder</set>
<set name="body" before="layout">
Something went wrong with that request. Please try again.