Yuma code is embedded in HTML code, between "<?yuma" and "?>" tags. Anything the Yuma code prints is inserted into the resulting HTML sent to the client.
Yuma is effectively an HTML (or other text file) preprocessor. When a client requests a file that goes through the Yuma engine, Yuma scans it for tags that identify embedded Yuma code. The opening tag is "<?yuma" and the closing tag is "?>", so Yuma code must always appear between these.
Any code it finds is compiled and executed. That code can do almost anything — read and write databases, send email, perform computations, and so on — but one of the most important things it can do is generate output for display to the user. Using the "Print" method, it can generate HTML code that is inserted into the original HTML document, right where the code was. The result is a dynamically generated page; the user sees only the result of the computations, and none of the original code.
Here's a simple example:
<html>
<head><title>Example</title></head>
<body>
<p>A greeting for you:</p>
<p>
<?yuma
for i As Integer = 1 to 10
Print "Hello world!<br />"
next
?>
</p>
<p>All done!</p>
</body>
</html>
When this file is run through the Yuma engine, the contents of the <?yuma...?> block will be replaced with the output of that code — in this case, the message "Hello world!" ten times, separated by line breaks.
Yuma uses a modern, strongly-typed, object-oriented language. You can declare classes and modules; make use of mix-ins, singletons, and other design patterns; and build a library of reusable components that can be included wherever you need them.