Skip to content
This repository

Correct the syntax. If you nest, then the first word of the nested block... #64

merged 2 commits into from about 1 year ago

3 participants

Gonzalo Rodríguez-Baltanás Díaz Kurakin Alexander Nick Sutterer
Gonzalo Rodríguez-Baltanás Díaz

Fixed some mistakes in the .slim template

Kurakin Alexander

@apotonick @Nerian
@6baa4a8 is right thing!
But not @d4428c6: there is another style in another files, i.e. haml template

Nick Sutterer apotonick merged commit 7afb2ce into from February 13, 2013
Nick Sutterer apotonick closed this February 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 2 unique commits by 1 author.

Jan 31, 2012
Gonzalo Rodríguez-Baltanás Díaz Correct the syntax. If you nest, then the first word of the nested bl…
…ock will become a tag; 'Find...' was being parsed a <find>...</find>.
Gonzalo Rodríguez-Baltanás Díaz Add 'widget_div', as other do all other templates. 6baa4a8
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 3 additions and 4 deletions. Show diff stats Hide diff stats

  1. 7  lib/generators/templates/view.slim
7  lib/generators/templates/view.slim
... ...
@@ -1,4 +1,3 @@
-  <%= class_name %>Widget#<%= @state %>
-  Find me in <%= @path %>
+= widget_div do
+  h1 <%= class_name %>Widget#<%= @state %>
+  p Find me in <%= @path %>

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.