literal-html

Simple and unsafe HTML/XML templates for TypeScript, using tagged template literals (by jaredkrinke)

Literal-html Alternatives

Similar projects and alternatives to literal-html

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better literal-html alternative or higher similarity.

literal-html discussion

Log in or Post with

literal-html reviews and mentions

Posts with mentions or reviews of literal-html. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-26.
  • That people produce HTML with string templates is telling us something
    16 projects | news.ycombinator.com | 26 May 2023
    XSLT has a steep learning curve and it’s extremely verbose. But my main problem with it is that (as far as I know) XHTML isn’t being updated alongside the current HTML spec (with semantic elements).

    Related: I’ll admit that I used to use XSLT for my static site generators [1] and now I’ve switched to string interpolation (with conservative escaping as the default) [2].

    [1] https://github.com/jaredkrinke/flog/blob/main/post.xsl

    [2] https://github.com/jaredkrinke/literal-html

Stats

Basic literal-html repo stats
1
0
10.0
over 2 years ago

jaredkrinke/literal-html is an open source project licensed under MIT No Attribution which is not an OSI approved license.

The primary programming language of literal-html is TypeScript.


Sponsored
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io