Blitz templates



    Blitz Templates is a fast and convenient template engine for large Internet projects developed in php. At first it may not be completely obvious why Blitz is needed for php, at a time when this language, in fact, is a template engine, only very sophisticated.



    Everything becomes clear when it comes to a large project, in which there are such labor units as a developer and layout designer, when the question arises of separating application logic and layout. Well, of course, such projects cannot do without the task of rational use of computing resources when it comes to the return of millions of dynamic HTML-documents per day.

    The ordinary layout designer is alien to the wilds of a developed scripting language; he sees work in a different light. This is the first thing that is difficult to understand from the outside.

    The Blitz philosophy - the whole logic, including complex loops (some advanced features of working with loops nevertheless appeared in the latest versions of the template engine) - is on the script side, under the control of the developer. The typesetter operates with only a small set of simple directives. If it is necessary to output a certain block of a document N times, then the layout task is only to properly mark this block in the code, and the programmer’s task is to determine when and how many times iterate this block.

    In fact, everything turns out very conveniently and efficiently. I personally faced situations when one of the largest Russian Internet companies faced significant conflicts due to the reluctance of layout designers to understand the capabilities of the Toolkit Template. I personally saw that terrible neglected state reached by page templates of millions of projects. In the case of Blitz Templates, this is excluded.

    Company Thematic Media thanks Alexey Rybak and his colleagues for what they find time and energy to maintain and develop as a useful Open-Source initiative.

    Blitz Templates already lives in the heart of autocadabra and the new version of habrahabr :-)

    Also popular now: