As we mentioned before, Metal.js components are written in ES6, which means that we need a transpiling process before using it on a website.
This tool is required when building Metal.js components that use Soy. It takes the
It's suggested to run this tool as a CLI, but it can also be run programmatically if necessary.
Take a look at the project's documentation for more information.
If you are using webpack to bundle your Metal.js components, you can optionally use the metal-soy-loader which conveniently wraps metal-tools-soy for use with webpack.
To see examples of these tools in action, check out the Yeoman Generator. The boilerplate it generates for both Soy and JSX components implement these tools out of the box.
Contribute on Github! Edit this section.