Sha256: 60ddea6e6433ed2beda4c59bfc27620fe737bce99f251f08f00773cabb744b10

Contents?: true

Size: 394 Bytes

Versions: 46

Compression:

Stored size: 394 Bytes

Contents

var WcREPL = {
	addCode: function(code, source) {
		var template = Handlebars.compile(source);
		var data = { 
			code: code
		};
		return $(template(data)).appendTo("body");	
	},
	addInput: function(code) {
		var source = $("#input-template").html();
		this.addCode(code, source);
	},
	addOutput: function(code) {
		var source = $("#output-template").html();
		this.addCode(code, source);
	}
}

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
repla-0.10.4 lib/repla/repl/html/js/wcrepl.js
repla-0.10.3 lib/repla/repl/html/js/wcrepl.js
repla-0.10.2 lib/repla/repl/html/js/wcrepl.js
repla-0.10.1 lib/repla/repl/html/js/wcrepl.js
repla-0.10.0 lib/repla/repl/html/js/wcrepl.js
repla-0.9.2 lib/repla/repl/html/js/wcrepl.js
repla-0.9.1 lib/repla/repl/html/js/wcrepl.js
repla-0.8.4 lib/repla/repl/html/js/wcrepl.js
repla-0.8.3 lib/repla/repl/html/js/wcrepl.js
repla-0.8.2 lib/repla/repl/html/js/wcrepl.js
repla-0.8.1 lib/repla/repl/html/js/wcrepl.js
repla-0.8.0 lib/repla/repl/html/js/wcrepl.js
repla-0.7.6 lib/repla/repl/html/js/wcrepl.js
repla-0.7.5 lib/repla/repl/html/js/wcrepl.js
repla-0.7.4 lib/repla/repl/html/js/wcrepl.js
repla-0.7.3 lib/repla/repl/html/js/wcrepl.js
repla-0.7.2 lib/repla/repl/html/js/wcrepl.js
repla-0.7.1 lib/repla/repl/html/js/wcrepl.js
repla-0.7.0 lib/repla/repl/html/js/wcrepl.js
repla-0.6.2 lib/repla/repl/html/js/wcrepl.js