LL
template inheritanceНу вот все те полтора языка, которые я видел, были очень похожи
Size: a a a
LL
template inheritanceLL
elixir мире SSR не очень популяренLL
V
template inheritanceSM
V
SM
LL
LL
V
LL
V
<html>Вариант с наследованием:
<head>ТИТЛ</head>
<body>
<content>ДИНАМИЧЕСКИЙ КОНТЕНТ</content>
<footer>ФУТЕР<footer>
</body>
</html>
<html>+
<head>ТИТЛ</head>
<body>
<content>{% block content%}{% endblock %}</content>
<footer>ФУТЕР<footer>
</body>
</html>
{% inherit from 'base' %}
{% block content %}ДИНАМИЧЕСКИЙ КОНТЕНТ{% endblock %}
А ты про что говоришь?<html>+
<head>ТИТЛ</head>
<body>
<content>
{% render 'header' %}
ДИНАМИЧЕСКИЙ КОНТЕНТ
{% render 'footer' %}
+</content>
<footer>ФУТЕР<footer>
</body>
</html>
LL
<body>
<%= render @view_module, @view_template, Map.put(assigns, :layout, {MyApp.LayoutView, assigns.body})%>
</body>
render(conn, "index.html", body: "body.html")LL
ŹR
LL
SM
DP
PG
LL
pypy3, надеюсь