Ejemplo n.º 1
0
class TestCase(unittest.TestCase):

    def setUp(self):
        self.hamlish = Hamlish(
            Output(indent_string='  ', newline_string='\n'))

    def _h(self, source):
        return self.hamlish.convert_source(source)
Ejemplo n.º 2
0
 def setUp(self):
     self.hamlish = Hamlish(
         Output(indent_string='  ', newline_string='\n',
               block_start_string='{$',
               block_end_string='$}',
               variable_start_string='${',
               variable_end_string='}'
               ))
Ejemplo n.º 3
0
 def setUp(self):
     self.hamlish = Hamlish(Output(indent_string='  ', newline_string='\n'),
                            use_div_shortcut=True)
Ejemplo n.º 4
0
 def setUp(self):
     self.hamlish = Hamlish(
         Output(indent_string='  ', newline_string='\n'))
Ejemplo n.º 5
0
 def setUp(self):
     self.hamlish = Hamlish(
         Output(indent_string='  ', newline_string='\n'), debug=True)
Ejemplo n.º 6
0
 def setUp(self):
     self.hamlish = Hamlish(
         Output(indent_string='', newline_string='', debug=False))
Ejemplo n.º 7
0
class TestCase(unittest.TestCase):
    def setUp(self):
        self.hamlish = Hamlish(Output(indent_string='  ', newline_string='\n'))

    def _h(self, source):
        return self.hamlish.convert_source(source)