# How to display template path without hardcoding it?

**URL:** https://discourse.gohugo.io/t/how-to-display-template-path-without-hardcoding-it/27098
**Category:** support
**Created:** [July 21, 2020, 10:57am UTC](https://discourse.gohugo.io/t/how-to-display-template-path-without-hardcoding-it/27098 "2020-07-21T10:57:02Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vendelin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/vendelin/32/11243_2.png) [@vendelin](https://discourse.gohugo.io/u/vendelin)
#### Post date: [July 21, 2020, 10:57am UTC](https://discourse.gohugo.io/t/how-to-display-template-path-without-hardcoding-it/27098/1 "2020-07-21T10:57:02Z")

</div>

How to display template path without hardcoding it into template? Or is it possible at all? I’d like to use for debugging.

---

<div class="post-metadata">

### Author: ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)
#### Post date: [July 21, 2020, 11:02am UTC](https://discourse.gohugo.io/t/how-to-display-template-path-without-hardcoding-it/27098/2 "2020-07-21T11:02:55Z")

</div>

Within a shortcode you can use `.Name`, but there’s no similar mechanism for templates and partials. I wish there were.
