Blogger template: Uncaught ReferenceError: index is not defined

75D <[email protected]>
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
Hi,

I use the following code in my template:

<body>
<b:if cond='*data:blog.pageType* != &quot;&quot;'>
    <script>

        // 1. ok
        console.log(&#39;<!--Index Page-->&#39;); 

        // 2. not ok
        var pageType = *<data:blog.pageType/>*;
        console.log(pageType); // *Uncaught ReferenceError: index is not 
defined*
    </script>
</b:if>
...
...
</body>

What is problem, why the error?

-- 
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.