machty / emblem.js

Emblem.js - Ember-friendly, indented syntax alternative for Handlebars.js
http://emblemjs.com
MIT License
1.04k stars 81 forks source link

Warning: Emblem syntax error, line 2: Expected BeginStatement or DEDENT but "\uEFEF" found. #140

Closed danielthall closed 10 years ago

danielthall commented 10 years ago

I see other issues similar to mine, but I haven't been able to solve based on them. I'm trying to compile all of my emblem templates with grunt but I keep getting an error on my first file. It seems to be aborting on the second line. Here is my code:

if isSignedIn
  header.top_nav role="banner"
    ul.main_nav
      li.main_logo
        img#logo src="img/logo.svg" alt="mongoose"
        h2 Developer
      li link-to "apps" | Apps
      li link-to "reports" | Reports
      li link-to "documentation" | Docs
      li link-to "support" | Support
    ul.profile
      li.drop
        Hello,
        = firstName
        span.arrow_down
        ul.dropnav
          / TODO: change link-to to be dynamic
          li = link-to "user" userId | Edit Profile
          li: a Notifications
          li: a Terms and Conditions
          li: a Privacy Policy
          li: a: "signOut" | Sign Out
      li
        img src=avatarUrl

  header.system_info role="banner"
    ul
      li.system_health#system_health data-health="green"
        span Mongoose Is
        span.health_score
    .search_box
      span.search-icon
      input type="text" placeholder="Search"

  .container
    aside.side_nav role="complementary"
      nav.sticky
      render "sidebar"

    main#main role="main"
      .main_container
        = view Mon.FlashListView
        = outlet

else
  render signedOut

Any help would be greatly appreciated.

danielthall commented 10 years ago

Nevermind...user error :)