SYMBOL INDEX (236 symbols across 16 files) FILE: hamlpy/elements.py class Element (line 5) | class Element(object): method __init__ (line 37) | def __init__(self, haml, attr_wrapper="'"): method attr_wrap (line 51) | def attr_wrap(self, value): method _parse_haml (line 54) | def _parse_haml(self): method _parse_class_from_attributes_dict (line 67) | def _parse_class_from_attributes_dict(self): method _parse_id (line 75) | def _parse_id(self, id_haml): method _parse_id_dict (line 82) | def _parse_id_dict(self, id_dict): method _escape_attribute_quotes (line 93) | def _escape_attribute_quotes(self, v): method _parse_attribute_dictionary (line 112) | def _parse_attribute_dictionary(self, attribute_dict_string): FILE: hamlpy/ext.py function clean_extension (line 14) | def clean_extension(file_ext): function get_file_extension (line 22) | def get_file_extension(file_path): function has_any_extension (line 27) | def has_any_extension(file_path, extensions): class HamlPyExtension (line 32) | class HamlPyExtension(jinja2.ext.Extension): method preprocess (line 34) | def preprocess(self, source, name, filename=None): FILE: hamlpy/hamlpy.py class Compiler (line 8) | class Compiler: method __init__ (line 10) | def __init__(self, options_dict=None): method process (line 15) | def process(self, raw_text): method process_lines (line 19) | def process_lines(self, haml_lines): function convert_files (line 51) | def convert_files(): FILE: hamlpy/hamlpy_watcher.py class Options (line 21) | class Options(object): class StoreNameValueTagPair (line 30) | class StoreNameValueTagPair(argparse.Action): method __call__ (line 31) | def __call__(self, parser, namespace, values, option_string = None): function watched_extension (line 52) | def watched_extension(extension): function watch_folder (line 59) | def watch_folder(): function _watch_folder (line 110) | def _watch_folder(folder, destination, compiler_args): function _compiled_path (line 133) | def _compiled_path(destination, filename): function compile_file (line 136) | def compile_file(fullpath, outfile_name, compiler_args): FILE: hamlpy/nodes.py class NotAvailableError (line 21) | class NotAvailableError(Exception): function create_node (line 53) | def create_node(haml_line): class TreeNode (line 116) | class TreeNode(object): method __init__ (line 118) | def __init__(self): method left_sibling (line 122) | def left_sibling(self): method right_sibling (line 127) | def right_sibling(self): method add_child (line 132) | def add_child(self, child): class RootNode (line 136) | class RootNode(TreeNode): method __init__ (line 137) | def __init__(self, attr_wrapper="'"): method add_child (line 152) | def add_child(self, child): method render (line 157) | def render(self): method render_newlines (line 165) | def render_newlines(self): method parent_of (line 168) | def parent_of(self, node): method inside_filter_node (line 175) | def inside_filter_node(self): method _render_children (line 181) | def _render_children(self): method _post_render (line 185) | def _post_render(self): method _generate_html (line 189) | def _generate_html(self): method add_node (line 199) | def add_node(self, node): method _should_go_inside_last_node (line 205) | def _should_go_inside_last_node(self, node): method should_contain (line 209) | def should_contain(self, node): method debug_tree (line 212) | def debug_tree(self): method _debug_tree (line 215) | def _debug_tree(self, nodes): method __repr__ (line 223) | def __repr__(self): class HamlNode (line 226) | class HamlNode(RootNode): method __init__ (line 227) | def __init__(self, haml): method replace_inline_variables (line 234) | def replace_inline_variables(self, content): method __repr__ (line 239) | def __repr__(self): class PlaintextNode (line 242) | class PlaintextNode(HamlNode): method _render (line 244) | def _render(self): class ElementNode (line 257) | class ElementNode(HamlNode): method __init__ (line 259) | def __init__(self, haml): method _render (line 263) | def _render(self): method _render_before (line 270) | def _render_before(self, element): method _render_after (line 295) | def _render_after(self, element): method _post_render (line 306) | def _post_render(self): method _render_inline_content (line 351) | def _render_inline_content(self, inline_content): class CommentNode (line 361) | class CommentNode(HamlNode): method _render (line 362) | def _render(self): class ConditionalCommentNode (line 370) | class ConditionalCommentNode(HamlNode): method _render (line 371) | def _render(self): class DoctypeNode (line 383) | class DoctypeNode(HamlNode): method _render (line 384) | def _render(self): class HamlCommentNode (line 408) | class HamlCommentNode(HamlNode): method _render (line 409) | def _render(self): method _post_render (line 412) | def _post_render(self): class VariableNode (line 415) | class VariableNode(ElementNode): method __init__ (line 416) | def __init__(self, haml): method _render (line 420) | def _render(self): method _post_render (line 425) | def _post_render(self): class TagNode (line 428) | class TagNode(HamlNode): method __init__ (line 451) | def __init__(self, haml): method _render (line 459) | def _render(self): method should_contain (line 471) | def should_contain(self, node): class FilterNode (line 475) | class FilterNode(HamlNode): method add_node (line 476) | def add_node(self, node): method inside_filter_node (line 479) | def inside_filter_node(self): method _render_children_as_plain_text (line 482) | def _render_children_as_plain_text(self, remove_indentation = True): method _post_render (line 494) | def _post_render(self): class PlainFilterNode (line 499) | class PlainFilterNode(FilterNode): method __init__ (line 500) | def __init__(self, haml): method _render (line 504) | def _render(self): class PythonFilterNode (line 509) | class PythonFilterNode(FilterNode): method _render (line 510) | def _render(self): class JavascriptFilterNode (line 536) | class JavascriptFilterNode(FilterNode): method _render (line 537) | def _render(self): class CoffeeScriptFilterNode (line 545) | class CoffeeScriptFilterNode(FilterNode): method _render (line 546) | def _render(self): class CssFilterNode (line 554) | class CssFilterNode(FilterNode): method _render (line 555) | def _render(self): class StylusFilterNode (line 563) | class StylusFilterNode(FilterNode): method _render (line 564) | def _render(self): class CDataFilterNode (line 572) | class CDataFilterNode(FilterNode): method _render (line 573) | def _render(self): class PygmentsFilterNode (line 578) | class PygmentsFilterNode(FilterNode): method _render (line 579) | def _render(self): class MarkdownFilterNode (line 591) | class MarkdownFilterNode(FilterNode): method _render (line 592) | def _render(self): FILE: hamlpy/template/loaders.py class TemplateDoesNotExist (line 8) | class TemplateDoesNotExist(Exception): function get_haml_loader (line 26) | def get_haml_loader(loader): FILE: hamlpy/template/utils.py function get_django_template_loaders (line 13) | def get_django_template_loaders(): function get_submodules (line 20) | def get_submodules(package): function package_contents (line 26) | def package_contents(package): FILE: hamlpy/templatize.py function decorate_templatize (line 18) | def decorate_templatize(func): FILE: hamlpy/test/ext_test.py class ExtTest (line 5) | class ExtTest(unittest.TestCase): method test_has_any_extension (line 10) | def test_has_any_extension(self): FILE: hamlpy/test/hamlnode_test.py class TestElementNode (line 4) | class TestElementNode(unittest.TestCase): method test_calculates_indentation_properly (line 5) | def test_calculates_indentation_properly(self): method test_indents_tabs_properly (line 15) | def test_indents_tabs_properly(self): method test_lines_are_always_stripped_of_whitespace (line 34) | def test_lines_are_always_stripped_of_whitespace(self): method test_inserts_nodes_into_proper_tree_depth (line 41) | def test_inserts_nodes_into_proper_tree_depth(self): method test_adds_multiple_nodes_to_one (line 55) | def test_adds_multiple_nodes_to_one(self): method test_html_indentation_vs_haml_indentation (line 67) | def test_html_indentation_vs_haml_indentation(self): method test_node_parent_function (line 70) | def test_node_parent_function(self): FILE: hamlpy/test/hamlpy_test.py class HamlPyTest (line 6) | class HamlPyTest(unittest.TestCase): method test_applies_id_properly (line 8) | def test_applies_id_properly(self): method test_non_ascii_id_allowed (line 15) | def test_non_ascii_id_allowed(self): method test_applies_class_properly (line 22) | def test_applies_class_properly(self): method test_applies_multiple_classes_properly (line 29) | def test_applies_multiple_classes_properly(self): method test_dictionaries_define_attributes (line 36) | def test_dictionaries_define_attributes(self): method test_dictionaries_support_arrays_for_id (line 46) | def test_dictionaries_support_arrays_for_id(self): method test_dictionaries_can_by_pythonic (line 53) | def test_dictionaries_can_by_pythonic(self): method test_html_comments_rendered_properly (line 61) | def test_html_comments_rendered_properly(self): method test_conditional_comments_rendered_properly (line 68) | def test_conditional_comments_rendered_properly(self): method test_single_line_conditional_comments_rendered_properly (line 75) | def test_single_line_conditional_comments_rendered_properly(self): method test_django_variables_on_tag_render_properly (line 82) | def test_django_variables_on_tag_render_properly(self): method test_stand_alone_django_variables_render (line 89) | def test_stand_alone_django_variables_render(self): method test_stand_alone_django_tags_render (line 96) | def test_stand_alone_django_tags_render(self): method test_if_else_django_tags_render (line 103) | def test_if_else_django_tags_render(self): method test_throws_exception_when_trying_to_close_django (line 111) | def test_throws_exception_when_trying_to_close_django(self): method test_handles_dash_in_class_name_properly (line 116) | def test_handles_dash_in_class_name_properly(self): method test_handles_multiple_attributes_in_dict (line 123) | def test_handles_multiple_attributes_in_dict(self): method test_inline_variables_are_parsed_correctly (line 130) | def test_inline_variables_are_parsed_correctly(self): method test_inline_variables_can_use_filter_characters (line 137) | def test_inline_variables_can_use_filter_characters(self): method test_inline_variables_in_attributes_are_parsed_correctly (line 144) | def test_inline_variables_in_attributes_are_parsed_correctly(self): method test_inline_variables_in_attributes_work_in_id (line 151) | def test_inline_variables_in_attributes_work_in_id(self): method test_inline_variables_in_attributes_work_in_class (line 158) | def test_inline_variables_in_attributes_work_in_class(self): method test_inline_variables_in_attributes_are_escaped_correctly (line 165) | def test_inline_variables_in_attributes_are_escaped_correctly(self): method test_inline_variables_escaping_works (line 172) | def test_inline_variables_escaping_works(self): method test_inline_variables_escaping_works_at_start_of_line (line 179) | def test_inline_variables_escaping_works_at_start_of_line(self): method test_inline_variables_with_hash_escaping_works_at_start_of_line (line 186) | def test_inline_variables_with_hash_escaping_works_at_start_of_line(se... method test_inline_variables_work_at_start_of_line (line 193) | def test_inline_variables_work_at_start_of_line(self): method test_inline_variables_with_hash_work_at_start_of_line (line 200) | def test_inline_variables_with_hash_work_at_start_of_line(self): method test_inline_variables_with_special_characters_are_parsed_correctly (line 207) | def test_inline_variables_with_special_characters_are_parsed_correctly... method test_plain_text (line 214) | def test_plain_text(self): method test_plain_text_with_indenting (line 221) | def test_plain_text_with_indenting(self): method test_escaped_haml (line 228) | def test_escaped_haml(self): method test_utf8_with_regular_text (line 235) | def test_utf8_with_regular_text(self): method test_python_filter (line 242) | def test_python_filter(self): method test_doctype_html5 (line 249) | def test_doctype_html5(self): method test_doctype_xhtml (line 256) | def test_doctype_xhtml(self): method test_doctype_xml_utf8 (line 263) | def test_doctype_xml_utf8(self): method test_doctype_xml_encoding (line 270) | def test_doctype_xml_encoding(self): method test_plain_filter_with_indentation (line 277) | def test_plain_filter_with_indentation(self): method test_plain_filter_with_no_children (line 284) | def test_plain_filter_with_no_children(self): method test_filters_render_escaped_backslash (line 291) | def test_filters_render_escaped_backslash(self): method test_xml_namespaces (line 298) | def test_xml_namespaces(self): method test_attr_wrapper (line 305) | def test_attr_wrapper(self): FILE: hamlpy/test/loader_test.py class DummyLoader (line 13) | class DummyLoader(object): method __init__ (line 21) | def __init__(self, *args, **kwargs): method load_template_source (line 24) | def load_template_source(self, template_name, *args, **kwargs): class LoaderTest (line 30) | class LoaderTest(unittest.TestCase): method setUp (line 37) | def setUp(self): method _test_assert_exception (line 43) | def _test_assert_exception(self, template_name): method test_file_not_in_dict (line 51) | def test_file_not_in_dict(self): method test_file_in_dict (line 55) | def test_file_in_dict(self): method test_file_should_load (line 60) | def test_file_should_load(self): method test_file_different_extension (line 69) | def test_file_different_extension(self): FILE: hamlpy/test/node_factory_test.py class TestNodeFactory (line 3) | class TestNodeFactory(): method test_creates_element_node_with_percent (line 5) | def test_creates_element_node_with_percent(self): method test_creates_element_node_with_dot (line 12) | def test_creates_element_node_with_dot(self): method test_creates_element_node_with_hash (line 19) | def test_creates_element_node_with_hash(self): method test_creates_html_comment_node_with_front_slash (line 26) | def test_creates_html_comment_node_with_front_slash(self): method test_random_text_returns_haml_node (line 33) | def test_random_text_returns_haml_node(self): method test_correct_symbol_creates_haml_comment (line 40) | def test_correct_symbol_creates_haml_comment(self): method test_equals_symbol_creates_variable_node (line 44) | def test_equals_symbol_creates_variable_node(self): method test_dash_symbol_creates_tag_node (line 48) | def test_dash_symbol_creates_tag_node(self): method test_backslash_symbol_creates_tag_node (line 52) | def test_backslash_symbol_creates_tag_node(self): method test_python_creates_python_node (line 59) | def test_python_creates_python_node(self): method test_slash_with_if_creates_a_conditional_comment_node (line 63) | def test_slash_with_if_creates_a_conditional_comment_node(self): FILE: hamlpy/test/regression.py class RegressionTest (line 6) | class RegressionTest(unittest.TestCase): method test_haml_comment_nodes_dont_post_render_children (line 8) | def test_haml_comment_nodes_dont_post_render_children(self): method test_whitespace_after_attribute_key (line 20) | def test_whitespace_after_attribute_key(self): method test_for_newline_after_conditional_comment (line 27) | def test_for_newline_after_conditional_comment(self): FILE: hamlpy/test/template_compare_test.py class TestTemplateCompare (line 6) | class TestTemplateCompare(unittest.TestCase): method test_nuke_inner_whitespace (line 8) | def test_nuke_inner_whitespace(self): method test_nuke_outer_whitespace (line 11) | def test_nuke_outer_whitespace(self): method test_comparing_simple_templates (line 14) | def test_comparing_simple_templates(self): method test_mixed_id_and_classes_using_dictionary (line 17) | def test_mixed_id_and_classes_using_dictionary(self): method test_self_closing_tags_close (line 20) | def test_self_closing_tags_close(self): method test_nested_html_comments (line 23) | def test_nested_html_comments(self): method test_haml_comments (line 26) | def test_haml_comments(self): method test_implicit_divs (line 29) | def test_implicit_divs(self): method test_django_combination_of_tags (line 32) | def test_django_combination_of_tags(self): method test_self_closing_django (line 35) | def test_self_closing_django(self): method test_nested_django_tags (line 38) | def test_nested_django_tags(self): method test_filters (line 41) | def test_filters(self): method test_filters_markdown (line 44) | def test_filters_markdown(self): method test_filters_pygments (line 51) | def test_filters_pygments(self): method test_nested_if_else_blocks (line 61) | def test_nested_if_else_blocks(self): method test_all_if_types (line 64) | def test_all_if_types(self): method test_multi_line_dict (line 67) | def test_multi_line_dict(self): method test_filter_multiline_ignore (line 70) | def test_filter_multiline_ignore(self): method test_whitespace_preservation (line 73) | def test_whitespace_preservation(self): method _print_diff (line 76) | def _print_diff(self, s1, s2): method _compare_test_files (line 109) | def _compare_test_files(self, name): FILE: hamlpy/test/test_elements.py class TestElement (line 5) | class TestElement(object): method test_attribute_value_not_quoted_when_looks_like_key (line 7) | def test_attribute_value_not_quoted_when_looks_like_key(self): method test_dashes_work_in_attribute_quotes (line 25) | def test_dashes_work_in_attribute_quotes(self): method test_escape_quotes_except_django_tags (line 35) | def test_escape_quotes_except_django_tags(self): method test_attributes_parse (line 44) | def test_attributes_parse(self): method test_pulls_tag_name_off_front (line 54) | def test_pulls_tag_name_off_front(self): method test_default_tag_is_div (line 58) | def test_default_tag_is_div(self): method test_parses_id (line 62) | def test_parses_id(self): method test_no_id_gives_empty_string (line 69) | def test_no_id_gives_empty_string(self): method test_parses_class (line 73) | def test_parses_class(self): method test_properly_parses_multiple_classes (line 77) | def test_properly_parses_multiple_classes(self): method test_no_class_gives_empty_string (line 81) | def test_no_class_gives_empty_string(self): method test_attribute_dictionary_properly_parses (line 85) | def test_attribute_dictionary_properly_parses(self): method test_id_and_class_dont_go_in_attributes (line 91) | def test_id_and_class_dont_go_in_attributes(self): method test_attribute_merges_classes_properly (line 96) | def test_attribute_merges_classes_properly(self): method test_attribute_merges_ids_properly (line 102) | def test_attribute_merges_ids_properly(self): method test_can_use_arrays_for_id_in_attributes (line 106) | def test_can_use_arrays_for_id_in_attributes(self): method test_self_closes_a_self_closing_tag (line 110) | def test_self_closes_a_self_closing_tag(self): method test_does_not_close_a_non_self_closing_tag (line 114) | def test_does_not_close_a_non_self_closing_tag(self): method test_can_close_a_non_self_closing_tag (line 118) | def test_can_close_a_non_self_closing_tag(self): method test_properly_detects_django_tag (line 122) | def test_properly_detects_django_tag(self): method test_knows_when_its_not_django_tag (line 126) | def test_knows_when_its_not_django_tag(self): method test_grabs_inline_tag_content (line 130) | def test_grabs_inline_tag_content(self): method test_multiline_attributes (line 134) | def test_multiline_attributes(self):