mirror of
https://github.com/S2-/ejs-render-remote
synced 2025-08-02 20:50:04 +02:00
24 lines
563 B
HTML
24 lines
563 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>ejs-render-remote example</title>
|
|
</head>
|
|
<body>
|
|
<h1>ejs-render-remote example</h1>
|
|
<p class="hello"></p>
|
|
|
|
<script src="jquery.min.js"></script>
|
|
<script src="ejs.min.js"></script>
|
|
<script src="../ejs-render-remote.js"></script>
|
|
|
|
|
|
<script>
|
|
//render the template
|
|
$('.hello').html(ejs.rr('templates/hello.ejs', {name: 'Simon'}));
|
|
</script>
|
|
</body>
|
|
</html>
|