O
O
Oleg Torbasov2016-10-10 12:23:22
XSL & XSLT
Oleg Torbasov, 2016-10-10 12:23:22

Does anyone use XSLT with webpack, and if so, how?

Webpack uses a bunch of templating engines, but what about XSLT or something like XSLT? The search has not helped yet, it seems that there is no such practice at all. Is it so?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
diesel3d, 2016-11-01
@diesel3d

Take, for example, node_xslt and wrap it in a loader. From experience, writing loaders is easy, and plugins too. Your loader, in my opinion, is just a reference example, everything will go like clockwork.
If you want to apply the template at runtime in the browser, node_xslt won't work, you need to look for a pure JS implementation.

Q
qtuz, 2016-10-29
@qtuz

Your impression is correct. XSLT in the world of JS somehow did not take root at all, and therefore there are no normal implementations. For simple manipulations, you can use posthtml or reshape (it's fresher and nicer). Both tools have corresponding webpack loaders.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question