var pageType = <data:blog.pageType/> not possible?

S1 <[email protected]>
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
<script>
    var pageType = <data:blog.pageType/>;
</script>

Get always a error:"Uncaught ReferenceError: item is not defined".

This is possible:

<b:if cond='data:blog.pageType != &quot;&quot;'>
    <script>
        console.log(&#39;<!--Index Page-->&#39;); 
    </script>
</b:if>

Why is "var pageType = <data:blog.pageType/>;" not possible, how could I do 
it otherwise?

-- 
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.