0

I tried to reproduce this simple tutorial about the script localScroll (jQuery). I used it and used the HTML code with Nanoc and it worked. Then, I tried to transform the HTML code in a HAML code.

Here is the HAML code.

Now, when I'm trying to compile this code, I always have the same type of compilation error:

layout /default/:12: syntax error, unexpected $undefined   ...</script>\n  </head>\n  <body>\n    <div id='box-links'>\n  ...  layout /default/:12: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('  ... </head>\n  <body>\n    <div id='box-links'>\n      <a#{_ham...

I let the full report here.

I'm also giving you my js script:

$(document).ready(function()
{
        $('#box-links').localScroll({
           target:'body'
        });
});

As you can see, scripts are quite simple. I suppose that my error is not complicated but I don't find a solution.

Colin Brock
  • 21,267
  • 9
  • 46
  • 61
  • Please try to properly format your questions. There is no need to use `
    ` for line breaks, and you can use the "Code Sample" button to format multi-line code.
    – Colin Brock Nov 16 '13 at 23:35
  • May the comma after stylesheet in the first link causes it: `:rel => "stylesheet",` – regulus Nov 16 '13 at 23:43
  • @Colin: I'm sorry, I won't use
    again and I'll use the "Code Sample" button next time
    – user3000510 Nov 16 '13 at 23:49
  • @regulus: Thank you, I changed and I put some commas. But I still have the same error – user3000510 Nov 16 '13 at 23:50
  • Put some commas? No I meant you should remove it. – regulus Nov 16 '13 at 23:59
  • My bad. I deleted them but I still have the same problem – user3000510 Nov 17 '13 at 00:10
  • Here is the last error report, if it can help -> [link](http://pastebin.com/mNDZ9hfc) – user3000510 Nov 17 '13 at 00:17
  • I tried to correct the syntax. Here is my first try: http://pastebin.com/T4wRUNmD And my second try is here: http://pastebin.com/DdGkmGcG For both tries, I don't have compilation errors but I know the syntax is not correct. And the problem is the same because the scroll function does not work at all. I also put my Rules file if it can help: http://pastebin.com/yJA68wbt – user3000510 Nov 17 '13 at 14:12
  • Is the question so difficult? :s – user3000510 Nov 18 '13 at 15:44

0 Answers0