# Come sovrascrivere un template.hbs da un plugin

**URL:** <https://meta.discourse.org/t/how-to-override-a-template-hbs-from-a-plugin/155556>\
**Category:** Development\
**Created:** [22 Giugno 2020, 1:02pm UTC](https://meta.discourse.org/t/how-to-override-a-template-hbs-from-a-plugin/155556 "2020-06-22T13:02:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![tshenry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tshenry/32/119495_2.png) [@tshenry](https://meta.discourse.org/u/tshenry)\
**Post date:** [30 Giugno 2020, 4:24pm UTC](https://meta.discourse.org/t/how-to-override-a-template-hbs-from-a-plugin/155556/2 "2020-06-30T16:24:24Z")

</div>

Mi assicurerò di aggiungere le istruzioni a riguardo alla guida principale, ma per ora dai un’occhiata alla mia risposta:

> [@tshenry](#):
>
> Ecco l’idea di base di ciò che dovresti aggiungere alla sezione `<head>` del tuo tema:
> 
> Template nella directory principale:
> 
> ```plaintext
> <script type="text/x-handlebars" data-template-name="javascripts/template-name">
>   
> </script>
> 
> ```
> 
> Template in una sottocartella:
> 
> ```plaintext
> <script type="text/x-handlebars" data-template-name="javascripts/subfolder/template-name">
>   
> </script>
> 
> ```

---

_[View the full topic](https://meta.discourse.org/t/how-to-override-a-template-hbs-from-a-plugin/155556)._
