S
S
svilkov872017-01-17 21:57:16
PHP
svilkov87, 2017-01-17 21:57:16

How is the development process in a team between the frontend and backend, if there is jade and php?

Good afternoon!
I have never worked in a team, so the question may seem ridiculous to you.
Imagine a situation:
There is a coder who writes in jade / pug, sass, etc...
And there is a backend developer who writes the engine in php.
Both are working on the same project.
The layout designer did his job and everything compiled into html and css, respectively.
And how does the backend work with these files?
With sass, everything is clear - all changes happen instantly, because. included one final css file.
What about jade? After all, in php we include (include) parts of the layout code, for example, header and footer in our separate header.php and footer.php files.
But what if the customer needs something new in the header, for example, a new button or form?
The layout designer will make changes to jade and that's it. And the Backend will manually cut a new compiled piece of code from index.html?
I hope the essence of the question is clear. I would be grateful for an answer or opinion.
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2017-01-17
@gangstarcj

jade is compiled to html and served.
The one who pulls the engine does not need to know about your jade, saas, gulp. It gets the html+css+images file and works with that.
There are edits on the layout, make edits, send, he rules at home.
Of course, everything is done through a common git

V
Valeriy Donika, 2017-01-17
@Valonix

As far as I know Jade is used in Nodejs. It's just that if there is dynamic content (data from the database) and not just hardcode, then jade with php will not dance, since these are files that, roughly speaking, are given by the server side, PHP or Nodejs. You should type in the .php files themselves if you are using PHP.

P
Pavel, 2017-01-18
@ncer

In short, then ... no way.
As Sergei correctly noted , all front-end preprocessors and assemblers give a damn to the php-programmer. He gets the finished html and pulls it on the php engine. In the future, if edits are needed on a page already stretched to the engine, then this php page itself will have to be edited and nothing else (who will do this is a separate issue).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question