SkillAgentSearch skills...

Tritium

Tritium is a magical document modifying language. It's JavaScript-like and simple to learn. Think XSLT without the nightmare. It was designed by Hampton Catlin (@hcatlin), and has been heavily influenced by Aaron Leung (@akhleung).

Install / Use

/learn @moovweb/Tritium
About this skill

Quality Score

0/100

Category

Design

Supported Platforms

Universal

README

== Tritium ==

Tritium is a magical language that functions as a document modifying language. It's JavaScript-like (except, without all that function() noise!) and simple to learn.

It was designed by Hampton Catlin (@hcatlin), and has been heavily influenced by Aaron Leung (@akhleung), the language's main engineer.

== Status ==

Tritium is proto-open source. We opened the source and changed the license. It's still not very usable outside of a Moovweb build/run environment. If you want to play around with the language, checkout http://tester.tritium.io

We are going to continue working hard to get this in shape for other uses outside of Moovweb directly.

Currently, it focuses on modifying XML documents only (HTML and XHTML count too).

Check out the examples in /test/functional to get started... but basically.

<html> <body> <div id="awesome" /> </body> </html>

If you pass that in as an input to the following script.

$("/html/body/div[@id='awesome']") { attribute("class", "even_awesomer!") wrap("div", class: "wrapper") }

You'd get back...

<html> <body> <div class="wrapper"> <div id="awesome" class="even_awesomer!"/> </div> </body> </html>
View on GitHub
GitHub Stars32
CategoryDesign
Updated1mo ago
Forks7

Languages

HTML

Security Score

90/100

Audited on Feb 13, 2026

No findings