# Allow more HTML markup customization for developers

**URL:** https://meta.discourse.org/t/allow-more-html-markup-customization-for-developers/13955
**Category:** Feature
**Created:** [March 21, 2014, 3:11am UTC](https://meta.discourse.org/t/allow-more-html-markup-customization-for-developers/13955 "2014-03-21T03:11:27Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![angelim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angelim/32/108456_2.png) [@angelim](https://meta.discourse.org/u/angelim)
#### Post date: [March 21, 2014, 3:11am UTC](https://meta.discourse.org/t/allow-more-html-markup-customization-for-developers/13955/1 "2014-03-21T03:11:27Z")

</div>

I’ve noticed that Discourse has some flexibility to customize stylesheets and headers, but I’d like to know how developer oriented admins are doing when they feel the need to hook up HTML snippets in a certain point/container.

I’m a **SpreeCommerce** ([http://guides.spreecommerce.com/developer/view.html](http://guides.spreecommerce.com/developer/view.html)) user and they came with a simple enough solution to use **Deface** ([https://github.com/spree/deface](https://github.com/spree/deface)) in order to allow template customization. The idea is to insert hooks in html elements making it easier for the developer to reach them and attach whatever he wants before, after, inside or around it.

I know the bulk of templates is being done using handlebars for ember, but I don’t think it would invalidate the method with minor tweaks. If we find a way to override those views before handlebars is compiled, we’d be ok.

The overrides are done in separate files in a non obtrusive manner, so core updates wouldn’t cause conflict(at least not a lot).

I understand this project doesn’t preach forking, as SpreeCommerce does, but I think it would be a good first step to allow discourse forums to differentiate themselves. It would also create incentives for third-party companies to work in project customizations.

---

<div class="post-metadata">

### Author: ![radq](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/radq/32/104329_2.png) [@radq](https://meta.discourse.org/u/radq)
#### Post date: [March 21, 2014, 3:40am UTC](https://meta.discourse.org/t/allow-more-html-markup-customization-for-developers/13955/2 "2014-03-21T03:40:50Z")

</div>

It is possible to override entire handlebars templates from plugins:

[https://meta.discourse.org/t/how-to-override-an-existing-handlebars-template-from-plugin/10201/5?u=radq](https://meta.discourse.org/t/how-to-override-an-existing-handlebars-template-from-plugin/10201/5)

---

<div class="post-metadata">

### Author: ![angelim](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angelim/32/108456_2.png) [@angelim](https://meta.discourse.org/u/angelim)
#### Post date: [March 21, 2014, 3:44am UTC](https://meta.discourse.org/t/allow-more-html-markup-customization-for-developers/13955/3 "2014-03-21T03:44:07Z")

</div>

Thanks @radq. I didn’t see that in the documentation. That solves the problem.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [March 21, 2014, 8:47am UTC](https://meta.discourse.org/t/allow-more-html-markup-customization-for-developers/13955/4 "2014-03-21T08:47:33Z")

</div>


