You are on page 1of 3

## Error output

+--- /!\ ERROR /!\ -------------------------------------------+


| An exception occured while running nanoc. If you think this |
| is a bug in nanoc, please do report it at |
| <http://projects.stoneship.org/trac/nanoc/newticket> -- |
| thanks in advance! |
+-------------------------------------------------------------+
=== MESSAGE:
Haml::SyntaxError: Illegal nesting: nesting within plain text is illegal.
=== COMPILATION STACK:
- [item] / (rep default)
=== BACKTRACE:
0. item / (rep default):42
1. /usr/lib/ruby19/gems/1.9.1/gems/haml-2.2.19/lib/haml/precompiler.rb:362:in
`push_plain'
2. /usr/lib/ruby19/gems/1.9.1/gems/haml-2.2.19/lib/haml/precompiler.rb:295:in
`process_line'
3. /usr/lib/ruby19/gems/1.9.1/gems/haml-2.2.19/lib/haml/precompiler.rb:196:in
`precompile'
4. /usr/lib/ruby19/gems/1.9.1/gems/haml-2.2.19/lib/haml/engine.rb:114:in `init
ialize'
5. /usr/lib/ruby19/gems/1.9.1/gems/nanoc-9999/lib/nanoc3/filters/haml.rb:16:in
`new'
6. /usr/lib/ruby19/gems/1.9.1/gems/nanoc-9999/lib/nanoc3/filters/haml.rb:16:in
`run'
7. /usr/lib/ruby19/gems/1.9.1/gems/nanoc-9999/lib/nanoc3/base/item_rep.rb:203:
in `filter'
8. /usr/lib/ruby19/gems/1.9.1/gems/nanoc-9999/lib/nanoc3/base/rule_context.rb:
51:in `filter'
9. (eval):97:in `block in load_rules'
10. /usr/lib/ruby19/gems/1.9.1/gems/nanoc-9999/lib/nanoc3/base/rule.rb:51:in `
instance_eval'
11. /usr/lib/ruby19/gems/1.9.1/gems/nanoc-9999/lib/nanoc3/base/rule.rb:51:in `
apply_to'
12. /usr/lib/ruby19/gems/1.9.1/gems/nanoc-9999/lib/nanoc3/base/compiler.rb:209
:in `compile_rep'
13. /usr/lib/ruby19/gems/1.9.1/gems/nanoc-9999/lib/nanoc3/base/compiler.rb:153
:in `compile_reps'
14. /usr/lib/ruby19/gems/1.9.1/gems/nanoc-9999/lib/nanoc3/base/compiler.rb:83:
in `run'
15. /usr/lib/ruby19/gems/1.9.1/gems/nanoc-9999/lib/nanoc3/cli/commands/compile
.rb:84:in `run'
16. /usr/lib/ruby19/gems/1.9.1/gems/cri-1.0.1/lib/cri/base.rb:91:in `run'
17. /usr/lib/ruby19/gems/1.9.1/gems/nanoc-9999/lib/nanoc3/cli/base.rb:57:in `r
un'
18. /usr/lib/ruby19/gems/1.9.1/gems/nanoc-9999/bin/nanoc3:16:in `<top (require
d)>'
19. /usr/bin/nanoc3:8:in `load'
20. /usr/bin/nanoc3:8:in `<main>'
## content/index.haml
- post = site.sorted_posts.first
= post.compiled_content :snapshot => :rendered_post
## Rules [ruby]
compile '/' do
filter :haml, :format => :html5 # Error here
layout 'default'
end
layout '*', :haml, :format => :html5, :ugly => true
## layouts/default.haml
!!!
%html
%head
%meta{ 'http-equiv' => 'Content-Type', :content => 'text/html; charset=utf-8
' }
%link{ :rel => 'icon', :href => '/favicon.ico' }
%link{ :rel => 'alternate', :type => 'application/rss+xml', :title => "RSS",
:href => '/feed/' }
-# OpenID delegation
%link( rel="openid.server" href="http://www.myopenid.com/server" )
%link( rel="openid.delegate" href="http://cheba.myopenid.com/" )
%link( rel="openid2.local_id" href="http://cheba.myopenid.com" )
%link( rel="openid2.provider" href="http://www.myopenid.com/server" )
-#%meta( http-equiv="X-XRDS-Location" content="http://www.myopenid.com/xrds?
username=cheba.myopenid.com" )
%meta{ :name => 'generator', :content => "Nanoc #{Nanoc3::VERSION}" }
%title
- unless item[:title].blank?
&= item[:title]
&bull;
PointlessOne
%link{ :rel => 'stylesheet', :href => '/assets/styles/master.css', :type =>
'text/css', :media => 'screen' }
-# Google Analytics
:javascript
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-271422-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript';
ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http
://www') + '.google-analytics.com/ga.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagNa
me('body')[0]).appendChild(ga);
})();
%body
#all
%header#page-header
%h1
- unless item[:title].blank?
%span.title&= item[:title]
%a( href='/' )
Pointless
%strong<> One
%nav
%ul
%li>
%a( href='/curriculum-vitae/' ) CV
%li>
%a( href='/tags/' ) Tags
%li>
%a( href='/archive/' ) Archive
%li>
%a( href='/feed/' ) Feed
%li>
%a( href='/contact/' ) Contact
%article#content
= yield
- if item.identifier == '/'
%aside
- archive = site.items.select{|i| i.identifier == '/archive/' }.first
%h2
%a{ :href => archive.default_rep.path } Recent updates
= archive.default_rep.content_at_snapshot(:pre)
.footer
%footer#footer
%span.powered
Powered by
%a{ :href => 'http://nanoc.stoneship.org/' } Nanoc
%span.copiright
== Code + Visual + Content &copy; 2005-#{Time.now.year}
%a{ :href => 'http://pointlessone.org/' } Alexander Mankuta

You might also like