Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
renderjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Franck
renderjs
Commits
4d5ebb91
Commit
4d5ebb91
authored
Oct 10, 2012
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add required tags.
parent
dc524389
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
20 deletions
+40
-20
examples/hello_world/say-hello.html
examples/hello_world/say-hello.html
+6
-1
examples/initialize_gadget/init-gadget.html
examples/initialize_gadget/init-gadget.html
+12
-7
examples/recursive/recursive-contained.html
examples/recursive/recursive-contained.html
+8
-4
examples/recursive/recursive.html
examples/recursive/recursive.html
+12
-7
renderjs.js
renderjs.js
+2
-1
No files found.
examples/hello_world/say-hello.html
View file @
4d5ebb91
Hello from the gadget!
\ No newline at end of file
<html>
<head></head>
<body>
Hello from the gadget!
</body>
</html>
\ No newline at end of file
examples/initialize_gadget/init-gadget.html
View file @
4d5ebb91
<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
[
name
=
RenderJs
.
GadgetIndex
.
getGadgetById
(
"
init-gadget
"
).
name
;
$
(
"
#name
"
).
html
(
name
);
//]]>
</script>
\ No newline at end of file
</script>
</body>
</html>
\ No newline at end of file
examples/recursive/recursive-contained.html
View file @
4d5ebb91
<p>
Hello from the recursive contained gadget!
</p>
<html>
<head></head>
<body>
<p>
Hello from the recursive contained gadget!
</p>
</body>
</html>
examples/recursive/recursive.html
View file @
4d5ebb91
<p>
Hello from the recursive gadget!
Below a new gadget will be loaded
</p>
<html>
<head></head>
<body>
<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-cache-id=
"recursive-contained"
></div>
</body>
</html>
\ No newline at end of file
renderjs.js
View file @
4d5ebb91
...
...
@@ -10,11 +10,12 @@
// still it's possible to override this and use explicit gadget rendering
var
RENDERJS_ENABLE_IMPLICIT_GADGET_RENDERING
=
true
;
// by default RenderJs will examin and bind all interaction gadgets
// by default RenderJs will examin
e
and bind all interaction gadgets
// available
var
RENDERJS_ENABLE_IMPLICIT_INTERACTION_BIND
=
true
;
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
//require(["../../../../lib/jstorage/jstorage.js"], function (util) {
//});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment