が、私は例えばDjangoの試合だから、現在のURLと負荷テンプレート
現在のURLに基づいてテンプレートをロードしようとしています:あるとして
{% if 'foo/bar/gallery' in request.path %}
{% include 'web/custom/foo/bar/gallery.html' %}
{% endif %}
のfoo /バー/、動的ですディレクトリテンプレートの場所。文字列 'gallery'は常に同じで、重要な場合はハードコーディングできます。 これはどのように達成できますか?
はFYI:まだジャンゴ1.3.7
可能な複製(http://stackoverflow.com/questions/4386168/how-to-concatenate-strings-in-django-templates/23783666#23783666) – Alasdair