From e65552efafe3d64b8bafecc6b94c7c3d5583b02d Mon Sep 17 00:00:00 2001 From: Sean Brant Date: Thu, 14 Mar 2013 23:20:21 -0500 Subject: Adds optional syntax to example blocks This is helpful when you need to add a modifier call to template that might not otherwise have a class. Instead of displaying class="" you can wrap wrap the class []? which will strip it out of the section example but leave it in the modifier examples. Button + ButtonButton Styleguide 2.1.1. """ @@ -36,7 +36,8 @@ Styleguide 2.1.1. self.assertEqual(self.section.modifiers[0].description, 'Highlights when hovering.') def test_parses_the_example(self): - self.assertEqual(self.section.example, 'Button') + expected = 'ButtonButton' + self.assertEqual(self.section.example, expected) def test_parses_the_styleguide_reference(self): self.assertEqual(self.section.section, '2.1.1') -- cgit v1.2.3