Wednesday, September 8, 2010

Using Blogger data tags inside script tags

Template will look like this:
<script type='javascript'>
var url='<data:blog.url/>';
</script>
And the rendered result will look like this:
<script type="javascript">
var url='http://blog.yanivkessler.com/';
</script>

No comments:

Post a Comment