Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Themes /

Discuss SilverStripe Themes.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Unterminated string literal with html5 mobile boilerplate


Go to End


1801 Views

Avatar
gonace

Community Member, 11 Posts

14 December 2011 at 4:05am

Edited: 14/12/2011 4:09am

I'm trying to create a mobile theme using the html5 mobile boilerplate (http://html5boilerplate.com/mobile) but I can't get it to work.

unterminated string literal
[Break On This Error] Modernizr.mq('(min-width:0)') || docum.../hogis_mobile/js/libs/respond.min.js">

On this line:

<script>Modernizr.mq('(min-width:0)') || document.write('<script src="/themes/hogis_mobile/js/libs/respond.min.js">\x3C/script>')</script>

I've been searching trough the internet with some solutions, for example upgrading the htmlCompressor to 1.4.2 but I'm using 1.4.3 so that bug should be fixed. The boilerplate runs correctly but when i try to make template file of the "index.html" I get the error message shown above.

What can't I see?