I want to access the variable "content" on to the client side from the server side, how would I do this?
extends layout
block content
div(id="ineditortxt")
h1(name="headings") #{title}
a(href='/signout', class='text-center new-account') Sign Out
div(id="editor")
|public class #{title}{
| public static void main(String[] args) {
|
| }
|}
script(src="src/ace.js", type="text/javascript")
script(type="text/javascript").
var editor=ace.edit("editor");
editor.setTheme("ace/theme/monokai");
editor.getSession().setMode("ace/mode/java");
function getText(){
event.preventDefault();
var content = editor.getValue();
return false;
}
form(name="Save", id = "save", onsubmit="getText()")
input(type="submit", value="Save")