{"repo":"cao-awa/CaperTML","free":true,"listed":false,"github":"https://github.com/cao-awa/CaperTML","clone":"git clone https://github.com/cao-awa/CaperTML.git","description":"CaperTML is a strong typed DSL-style html template generator for kotlin.","language":"Kotlin","stars":11,"topics":["dsl","html","html-generator","kotlin","template","type-driven-design","correctness-by-construction"],"license":"GPL-2.0","category":"saas-starters-boilerplates","readme_excerpt":"CaperTML CaperTML is a DSL-style strong type html template generator for kotlin. Do notice CaperTML are not a assembly as will tool, it enforces a subset of HTML content rules at compile time, this is not a string template engine. It's making invalid HTML content cannot be produce. Samples Execute the code: You will get these output: Compile-Time Enforcement of Content Model Rules CaperTML enforces HTML content model constraints at compile time . Each element in the DSL is bound to a specific content domain , encoded directly into the type system. This means that attempting to place an element in an invalid context (for example, inserting block-level elements such as or inside a element) will result in a compile-time error , not a runtime failure. Invalid HTML structures are therefore unrepresentable in CaperTML. This design intentionally shifts error detection from runtime to compile time, ensuring that only structurally valid HTML can be constructed. The compiler becomes the first line of validation, eliminating an entire class of markup errors before the application can run. As a result: Invalid element nesting is rejected by the compiler Incorrect content-domain usage cannot be expressed Generated HTML is structurally valid by construction Correctness is enforced by design, not by convention. Philosophy CaperTML is not a general-purpose HTML template engine, nor a string-based HTML assembler. It is a DSL-style, strongly-typed HTML generator whose primary goal is correctne","default_branch":null,"files":null,"tree":[],"storefront":"/r/cao-awa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cao-awa/CaperTML/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}