{% set template_name = (self|string).split("'")[1].split(".")[0] %} {% import 'partial/macros.j2' as macros with context %}