Уровень 0 · материалов: 3
Сюда относятся документы о технических методах и инструментах генерации HTML-шаблонов на стороне клиента или сервера, и не относятся документы о других аспектах веб-разработки.
Общие признаки: HTML-шаблонизация, оптимизация нагрузки на сервер, перенос логики рендеринга между клиентом и сервером
Группа выше: Шаблонизация и стратегии рендеринга
Смысл: The main idea is that moving HTML templating from the server to the client using tools like EJS improves performance, reduces server load, and enhances the user experience for dynamic web applications.
The author advocates for client-side templating using EJS to reduce server load and traffic by rendering JSON data directly in the browser.
Смысл: The main idea is to move the burden of storing personalized HTML fragments from the server's memory to the user's browser cache by serving generic templates and using JavaScript to fetch and inject personalized data.
The author proposes replacing server-side personalized block caching with a client-side approach using templates, JavaScript, and browser HTTP caching to reduce server memory load.
Смысл: The text demonstrates that using the V8 engine for server-side templating can unify frontend/backend logic and achieve near-native performance (1ms) if data transfer overhead is minimized.
Mail.Ru replaced its C-based templating with a V8-powered JavaScript system called 'fest', achieving 1ms transformation speeds by optimizing data access and avoiding redundant conversions.