Commit 4d5ebb91 authored by Ivan Tyagov's avatar Ivan Tyagov

Add required tags.

parent dc524389
Hello from the gadget! <html>
\ No newline at end of file <head></head>
<body>
Hello from the gadget!
</body>
</html>
\ No newline at end of file
<p>Hello to <span id="name"></span> from the gadget which can be initialized via data-gadget-property attribute from parent gadget!</p> <html>
<head></head>
<body>
<p>Hello to <span id="name"></span> from the gadget which can be initialized via data-gadget-property attribute from parent gadget!</p>
<script type="text/javascript" language="javascript"> <script type="text/javascript" language="javascript">
//<![CDATA[ //<![CDATA[
name = RenderJs.GadgetIndex.getGadgetById("init-gadget").name; name = RenderJs.GadgetIndex.getGadgetById("init-gadget").name;
$("#name").html(name); $("#name").html(name);
//]]> //]]>
</script> </script>
\ No newline at end of file </body>
</html>
\ No newline at end of file
<p> <html>
Hello from the recursive contained gadget! <head></head>
</p> <body>
<p>
Hello from the recursive contained gadget!
</p>
</body>
</html>
<p> <html>
Hello from the recursive gadget! <head></head>
Below a new gadget will be loaded <body>
</p> <p>
Hello from the recursive gadget!
Below a new gadget will be loaded
</p>
<div data-gadget="recursive-contained.html" <div data-gadget="recursive-contained.html"
data-gadget-cacheable="0" data-gadget-cacheable="0"
data-gadget-cache-id="recursive-contained"></div> data-gadget-cache-id="recursive-contained"></div>
\ No newline at end of file </body>
</html>
\ No newline at end of file
...@@ -10,11 +10,12 @@ ...@@ -10,11 +10,12 @@
// still it's possible to override this and use explicit gadget rendering // still it's possible to override this and use explicit gadget rendering
var RENDERJS_ENABLE_IMPLICIT_GADGET_RENDERING = true; var RENDERJS_ENABLE_IMPLICIT_GADGET_RENDERING = true;
// by default RenderJs will examin and bind all interaction gadgets // by default RenderJs will examine and bind all interaction gadgets
// available // available
var RENDERJS_ENABLE_IMPLICIT_INTERACTION_BIND = true; var RENDERJS_ENABLE_IMPLICIT_INTERACTION_BIND = true;
if (typeof require !== 'undefined') { if (typeof require !== 'undefined') {
// XXX: think how to use requirejs to load jquery upfront (and if it's possible)
// example of how we can use requirejs to load external libraries // example of how we can use requirejs to load external libraries
//require(["../../../../lib/jstorage/jstorage.js"], function (util) { //require(["../../../../lib/jstorage/jstorage.js"], function (util) {
//}); //});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment