# Web Components for Sage

**URL:** https://discourse.roots.io/t/web-components-for-sage/13767
**Category:** sage
**Created:** 2018-10-07T15:35:54Z
**Posts:** 2

## Post 1 by @Guillermo — 2018-10-07T15:35:54Z

Hi! Does Sage has an aproach to creating components (or web components)?  
I have found the [flyntwp.com](http://flyntwp.com) project and uses roots bedrock, ACF, Twig to accomplish a way to create an encapsulated modular component (HTML + CSS + JS).  
I think it may be a good way to create new Wordpress projects similar to the HTML5 web component philosophy :wink:  
Maybe is also a good idea to use polymer or simple web components inside wordpress development flow, i’m starting now thinking about how can be this integration: [https://github.com/them-es/themes-starter-spa](https://github.com/them-es/themes-starter-spa)

Thank you!

---

## Post 2 by @ben — 2018-10-08T16:37:49Z

Here’s one approach:

> [@Pattern Lab](https://discourse.roots.io/t/pattern-lab/2135/23):
>
> We’ve done this on one of our projects slight_smile The setup was quite in depth and time pressures mean I can’t fully outline right now, but I’m planning a blog post. It is possible though. Especially using the controllers in sage 9. In a nutshell the workflow was to build components in the styleguide - which sat at the same level as the resources folder: [42] The.content.php contains the variables that in the theme are replaced via the controller. we we’re then able to set view paths in…
