Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing yield(:title) behavior in nifty:layout. HAML only. Now with pr…

…esence.
  • Loading branch information...
commit c3eeaeb845822b11a99f3b38f4ac319b2335cdb9 1 parent 0d37edf
Andrey Ognevsky authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/generators/nifty/layout/templates/layout.html.haml
2  lib/generators/nifty/layout/templates/layout.html.haml
View
@@ -3,7 +3,7 @@
%head
%title
- = yield(:title) || "Untitled"
+ = yield(:title).presence || "Untitled"
%meta{"http-equiv"=>"Content-Type", :content=>"text/html; charset=utf-8"}/
= stylesheet_link_tag "<%= file_name %>"
= javascript_include_tag :defaults
Please sign in to comment.
Something went wrong with that request. Please try again.