Created
February 5, 2012 05:07
-
-
Save tsabat/1742971 to your computer and use it in GitHub Desktop.
problem description
This file contains hidden or 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
<html> | |
<body> | |
<script> | |
<?php | |
$templates = array( | |
'result' => file_get_contents('template.html') | |
); | |
echo '__templates = ' . json_encode($templates) . ';'; | |
?> | |
</script> | |
<script> | |
alert __templates; | |
</script> | |
</body> | |
</html> |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<body> | |
<script type="text/javascript"> | |
__templates = <%= get_templates %>; | |
</script> | |
<script> | |
alert __templates; | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment