V
V
Vladislav2018-04-04 18:57:56
Pug
Vladislav, 2018-04-04 18:57:56

Front end in Jade (Pug), CMS on Laravel (Blade). What's the easiest way to connect?

Hello. There is an interesting question. Until now, jade/pug has been used for layout projects, but when the layout is completed, the project needs to be adapted to a self-written CMS that is written in the Laravel framework using the Blade templating engine. This transfer from one templating engine to another takes quite a lot of time. I would like to somehow speed up this transfer process. Has anyone experienced this? It is possible to make the same structure in jade as in CMS and compile jade to html, having previously used constructions from Blade in jade. But I already see that the code will not be readable because all the blade code will need to be written starting with the symbol | so that jade doesn't start trying to execute the code.
Here, the option is either to abandon jade altogether and write the frontend in a blade, which I would not particularly like based on the cleanliness of the code and the absence of garbage. Or use some laravel-pug, but I don't quite understand how it works. In general, we need to speed up the process of transferring the layout to the control system, but I don’t know how to do it correctly, there are too many possible options ...
Help me choose the right way out. Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladislav Nagorny, 2018-04-04
@esvils

Look at the link here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question