Support specifying block names with single quotes.

Fixes #15
This commit is contained in:
Emil Stenström 2020-12-08 23:41:10 +01:00
parent e9fba9538f
commit 4c14675c3a
2 changed files with 22 additions and 1 deletions

View file

@ -183,7 +183,7 @@ def do_component(parser, token):
"Component name '%s' should be in quotes" % component_name
)
component_name = component_name.strip('"')
component_name = component_name.strip('"\'')
component_class = registry.get(component_name)
component = component_class()