app/views/smurfville/styleguide/typography.html.haml in smurfville-0.0.6 vs app/views/smurfville/styleguide/typography.html.haml in smurfville-0.1.0
- old
+ new
@@ -1,6 +1,10 @@
-:sass
- @import "typography"
- .typo1
- +default-text()
+// ---- CSS ----
+:css
+ #{Sass::Engine.new(File.read("#{Rails.root}/app/assets/stylesheets/_typography.sass") + render("typography_classes", typographies: @parser.typographies)).render}
-.typo1= "typo1"
\ No newline at end of file
+// ---- HTML ----
+
+.typography-list
+ - @parser.typographies.each do |typography|
+ .typographylist--item{class: typography_class(typography)}= "#{typography_humanized(typography)}: The quick brown fox ..."
+ %hr