Real-Time Results from Input
When you pass a function as the second argument of arg
, you can take the current input
and return a string. Kit.app will then render the results as HTML. The simplest example looks like this:
If you want to make it look a bit nicer, you can wrap the output with some HTML:
Growing on the example above, here's a Celsius to Fahrenheit converter: