Latte 3.1: When a templating system truly understands HTML – Nette Blog
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
Latte 3.1 introduces Smart HTML Attributes that understand context and data types, eliminating unnecessary conditions in templates. The update brings native mapping of PHP types to HTML attributes where null removes attributes entirely, booleans control attribute presence, and arrays serialize automatically for class/style/data
•5m read time• From blog.nette.org
Table of contents
Native mapping of PHP types to HTML attributesType safety in templatesStrict Types by DefaultNullsafe filters: The Holy Grail for Strict TypesSyntactic sugar for cleaner codeHow to upgrade safely?1 Comment
Sort: