├── .github └── workflows │ └── ci.yaml ├── .gitignore ├── LICENSE ├── README.md ├── docs ├── Makefile ├── changelog.rst ├── conf.py ├── extractor.rst ├── filters.rst ├── formulation.rst ├── index.rst ├── make.bat └── tags.rst ├── pyproject.toml ├── src └── sniplates │ ├── __init__.py │ ├── templates │ └── sniplates │ │ └── django.html │ └── templatetags │ ├── __init__.py │ └── sniplates.py └── tests ├── __init__.py ├── forms.py ├── models.py ├── report_settings.py ├── settings.py ├── templates ├── field_tag │ ├── choices │ ├── choices_multi │ ├── choices_multi2 │ ├── empty_field │ ├── field │ ├── override │ ├── override2 │ ├── widget2 │ ├── widgets │ └── widgets_django ├── filters │ └── flatattrs ├── inheritance │ ├── base │ ├── block_overlap │ ├── block_overlap_widget │ ├── parent_inherit │ ├── parent_inherit_base │ ├── parent_inherit_widgets │ ├── parent_overlap │ ├── parent_overlap_widgets │ ├── super │ ├── super_widget_base │ └── super_widget_inherit ├── invalid │ ├── bad_name │ ├── no_lib │ ├── no_widget │ ├── not_loaded │ └── simple.html ├── load_widgets │ ├── load_widgets │ ├── load_widgets_three │ ├── load_widgets_two │ ├── other.html │ └── simple.html ├── nested_tag │ ├── asvar │ ├── empty │ ├── invalid │ ├── invalid2 │ ├── keep_widgets │ ├── simple │ └── widgets ├── reuse │ ├── base │ ├── inwidget │ ├── reuse │ └── simple └── widget_tag │ ├── alias_self │ ├── asvar │ ├── fixed │ ├── inherit │ ├── var │ ├── widgets.1 │ ├── widgets.2 │ └── widgets.3 ├── test_core.py ├── test_filters.py ├── test_forms.py ├── test_inherited.py ├── test_nested.py ├── test_reuse.py ├── test_widgets_django.py └── utils.py /.github/workflows/ci.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/.github/workflows/ci.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/README.md -------------------------------------------------------------------------------- /docs/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/docs/Makefile -------------------------------------------------------------------------------- /docs/changelog.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/docs/changelog.rst -------------------------------------------------------------------------------- /docs/conf.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/docs/conf.py -------------------------------------------------------------------------------- /docs/extractor.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/docs/extractor.rst -------------------------------------------------------------------------------- /docs/filters.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/docs/filters.rst -------------------------------------------------------------------------------- /docs/formulation.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/docs/formulation.rst -------------------------------------------------------------------------------- /docs/index.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/docs/index.rst -------------------------------------------------------------------------------- /docs/make.bat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/docs/make.bat -------------------------------------------------------------------------------- /docs/tags.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/docs/tags.rst -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/pyproject.toml -------------------------------------------------------------------------------- /src/sniplates/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sniplates/templates/sniplates/django.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/src/sniplates/templates/sniplates/django.html -------------------------------------------------------------------------------- /src/sniplates/templatetags/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/sniplates/templatetags/sniplates.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/src/sniplates/templatetags/sniplates.py -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/forms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/forms.py -------------------------------------------------------------------------------- /tests/models.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/report_settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/report_settings.py -------------------------------------------------------------------------------- /tests/settings.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/settings.py -------------------------------------------------------------------------------- /tests/templates/field_tag/choices: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/field_tag/choices -------------------------------------------------------------------------------- /tests/templates/field_tag/choices_multi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/field_tag/choices_multi -------------------------------------------------------------------------------- /tests/templates/field_tag/choices_multi2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/field_tag/choices_multi2 -------------------------------------------------------------------------------- /tests/templates/field_tag/empty_field: -------------------------------------------------------------------------------- 1 | {% load sniplates %} 2 | {% form_field '' %} 3 | -------------------------------------------------------------------------------- /tests/templates/field_tag/field: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/field_tag/field -------------------------------------------------------------------------------- /tests/templates/field_tag/override: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/field_tag/override -------------------------------------------------------------------------------- /tests/templates/field_tag/override2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/field_tag/override2 -------------------------------------------------------------------------------- /tests/templates/field_tag/widget2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/field_tag/widget2 -------------------------------------------------------------------------------- /tests/templates/field_tag/widgets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/field_tag/widgets -------------------------------------------------------------------------------- /tests/templates/field_tag/widgets_django: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/field_tag/widgets_django -------------------------------------------------------------------------------- /tests/templates/filters/flatattrs: -------------------------------------------------------------------------------- 1 | {% load sniplates %}{{ a_dict|flatattrs }} 2 | -------------------------------------------------------------------------------- /tests/templates/inheritance/base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/inheritance/base -------------------------------------------------------------------------------- /tests/templates/inheritance/block_overlap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/inheritance/block_overlap -------------------------------------------------------------------------------- /tests/templates/inheritance/block_overlap_widget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/inheritance/block_overlap_widget -------------------------------------------------------------------------------- /tests/templates/inheritance/parent_inherit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/inheritance/parent_inherit -------------------------------------------------------------------------------- /tests/templates/inheritance/parent_inherit_base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/inheritance/parent_inherit_base -------------------------------------------------------------------------------- /tests/templates/inheritance/parent_inherit_widgets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/inheritance/parent_inherit_widgets -------------------------------------------------------------------------------- /tests/templates/inheritance/parent_overlap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/inheritance/parent_overlap -------------------------------------------------------------------------------- /tests/templates/inheritance/parent_overlap_widgets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/inheritance/parent_overlap_widgets -------------------------------------------------------------------------------- /tests/templates/inheritance/super: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/inheritance/super -------------------------------------------------------------------------------- /tests/templates/inheritance/super_widget_base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/inheritance/super_widget_base -------------------------------------------------------------------------------- /tests/templates/inheritance/super_widget_inherit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/inheritance/super_widget_inherit -------------------------------------------------------------------------------- /tests/templates/invalid/bad_name: -------------------------------------------------------------------------------- 1 | {% load sniplates %}{% widget 'boo-bar' %} 2 | -------------------------------------------------------------------------------- /tests/templates/invalid/no_lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/invalid/no_lib -------------------------------------------------------------------------------- /tests/templates/invalid/no_widget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/invalid/no_widget -------------------------------------------------------------------------------- /tests/templates/invalid/not_loaded: -------------------------------------------------------------------------------- 1 | {% load sniplates %}{% widget 'foo:bar' %} 2 | -------------------------------------------------------------------------------- /tests/templates/invalid/simple.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/invalid/simple.html -------------------------------------------------------------------------------- /tests/templates/load_widgets/load_widgets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/load_widgets/load_widgets -------------------------------------------------------------------------------- /tests/templates/load_widgets/load_widgets_three: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/load_widgets/load_widgets_three -------------------------------------------------------------------------------- /tests/templates/load_widgets/load_widgets_two: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/load_widgets/load_widgets_two -------------------------------------------------------------------------------- /tests/templates/load_widgets/other.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/load_widgets/other.html -------------------------------------------------------------------------------- /tests/templates/load_widgets/simple.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/load_widgets/simple.html -------------------------------------------------------------------------------- /tests/templates/nested_tag/asvar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/nested_tag/asvar -------------------------------------------------------------------------------- /tests/templates/nested_tag/empty: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/nested_tag/empty -------------------------------------------------------------------------------- /tests/templates/nested_tag/invalid: -------------------------------------------------------------------------------- 1 | {% load sniplates %}{% nested_widget %} 2 | -------------------------------------------------------------------------------- /tests/templates/nested_tag/invalid2: -------------------------------------------------------------------------------- 1 | {% load sniplates %}{% nested_widget 'foo:bar' baz %} 2 | -------------------------------------------------------------------------------- /tests/templates/nested_tag/keep_widgets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/nested_tag/keep_widgets -------------------------------------------------------------------------------- /tests/templates/nested_tag/simple: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/nested_tag/simple -------------------------------------------------------------------------------- /tests/templates/nested_tag/widgets: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/nested_tag/widgets -------------------------------------------------------------------------------- /tests/templates/reuse/base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/reuse/base -------------------------------------------------------------------------------- /tests/templates/reuse/inwidget: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/reuse/inwidget -------------------------------------------------------------------------------- /tests/templates/reuse/reuse: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/reuse/reuse -------------------------------------------------------------------------------- /tests/templates/reuse/simple: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/reuse/simple -------------------------------------------------------------------------------- /tests/templates/widget_tag/alias_self: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/widget_tag/alias_self -------------------------------------------------------------------------------- /tests/templates/widget_tag/asvar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/widget_tag/asvar -------------------------------------------------------------------------------- /tests/templates/widget_tag/fixed: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/widget_tag/fixed -------------------------------------------------------------------------------- /tests/templates/widget_tag/inherit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/widget_tag/inherit -------------------------------------------------------------------------------- /tests/templates/widget_tag/var: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/widget_tag/var -------------------------------------------------------------------------------- /tests/templates/widget_tag/widgets.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/widget_tag/widgets.1 -------------------------------------------------------------------------------- /tests/templates/widget_tag/widgets.2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/widget_tag/widgets.2 -------------------------------------------------------------------------------- /tests/templates/widget_tag/widgets.3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/templates/widget_tag/widgets.3 -------------------------------------------------------------------------------- /tests/test_core.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/test_core.py -------------------------------------------------------------------------------- /tests/test_filters.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/test_filters.py -------------------------------------------------------------------------------- /tests/test_forms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/test_forms.py -------------------------------------------------------------------------------- /tests/test_inherited.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/test_inherited.py -------------------------------------------------------------------------------- /tests/test_nested.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/test_nested.py -------------------------------------------------------------------------------- /tests/test_reuse.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/test_reuse.py -------------------------------------------------------------------------------- /tests/test_widgets_django.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/test_widgets_django.py -------------------------------------------------------------------------------- /tests/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/funkybob/django-sniplates/HEAD/tests/utils.py --------------------------------------------------------------------------------