Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94246ee
commit f6c7c4a
Showing
10 changed files
with
31 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
PERL5LIB=../lib | ||
PERL5LIB = ../lib | ||
|
||
all: js/ajax.js js/hello.js js/features.js | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
This is a directory of simple Jemplate examples. | ||
|
||
It should be viewable from CPAN. | ||
|
||
It should also run locally by running: | ||
|
||
plackup | ||
|
||
to start a server. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<html> | ||
<head> | ||
<title>Ajax Test</title> | ||
<script src="../../share/Jemplate.js" type="text/javascript"></script> | ||
<script src="../js/ajax.js" type="text/javascript"></script> | ||
<title>Jemplate Ajax Example</title> | ||
<script src="../js/JemplateRuntime.js" type="text/javascript"></script> | ||
<script src="../js/ajax.js" type="text/javascript"></script> | ||
</head> | ||
<body onload="Jemplate.process('body.html', 'data.json', this.document.body)"> | ||
It didn't work... | ||
Loading... | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../tests/app.psgi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
<html> | ||
<head> | ||
<title>Features Test</title> | ||
<script src="../../share/Jemplate.js" type="text/javascript"></script> | ||
<script src="../js/features.js" type="text/javascript"></script> | ||
|
||
<script type="text/javascript"> | ||
<title>Jemplate Features Test</title> | ||
<script src="../js/JemplateRuntime.js" type="text/javascript"></script> | ||
<script src="../js/features.js" type="text/javascript"></script> | ||
<script type="text/javascript"> | ||
onload = function() { | ||
Jemplate.process('body.html', null, '#body'); | ||
} | ||
</script> | ||
</script> | ||
|
||
</head> | ||
<body id="body"> | ||
It didn't work... | ||
Loading... | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
<html> | ||
<head> | ||
<title>Hello Test</title> | ||
<script src="../../share/Jemplate.js" type="text/javascript"></script> | ||
<script src="../js/hello.js" type="text/javascript"></script> | ||
<title>Hello Jemplate Example</title> | ||
<script src="../js/JemplateRuntime.js" type="text/javascript"></script> | ||
<script src="../js/hello.js" type="text/javascript"></script> | ||
|
||
<script type="text/javascript"> | ||
<script type="text/javascript"> | ||
onload = function() { | ||
var body = document.getElementsByTagName('body')[0]; | ||
var data = { name: 'Ingy' }; | ||
body.innerHTML = Jemplate.process('hello.html', data); | ||
} | ||
</script> | ||
</script> | ||
|
||
</head> | ||
<body> | ||
It didn't work... | ||
Loading... | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../tests/js/JemplateRuntime.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters