Tritium (programming language)
Tritium is a simple scripting language for efficiently transforming structured data like HTML, XML, and JSON.[src] It is similar in purpose to XSLT but has a syntax influenced by jQuery, Sass, and CSS versus XSLT's XML based syntax.[src]
Tritium is a simple scripting language for efficiently transforming structured data like HTML, XML, and JSON.[src] It is similar in purpose to XSLT but has a syntax influenced by jQuery, Sass, and CSS versus XSLT's XML based syntax.[src] Select all HTML nodes that are table elements with ID foo.[src] The $$() function takes a regular CSS selector $$("table#foo") { # change the width attributes to "100%" attribute("width", "100%") } While Tritium supports both XPath and CSS selectors via the $() and $$() functions (respectively), the preferred usage is XPath.[src] For example, the above code rewritten to use the equivalent XPath selector would be: Select all HTML nodes that are table elements with ID foo.[src] The $() uses XPath $("//table[@id='foo']") { # change the width attributes to "100%" attribute("width", "100%") }[src]
8 sentences · 8 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Tritium (programming language)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/tritium-programming-language. Accessed 01 December 2026.
Chicago
"Tritium (programming language)." encyclopegia.org. Accessed December 1, 2026. https://encyclopegia.org/wiki/tritium-programming-language.
APA
encyclopegia.org. (2026). Tritium (programming language). Retrieved December 1, 2026, from https://encyclopegia.org/wiki/tritium-programming-language
Accessed December 1, 2026 · CC BY-SA 4.0 · citation page · JSON