Introduction

#About


Sactory is a library for creating and manipulating XML-like documents, such as HTML and SVG.

It provides a transpiler that converts .sy and .sx source code to JavaScript and a runtime library that is used by the generated code to create and modify the DOM nodes and do even more.

About this guide

This guide will guide you through the various features of Sactory, from installation and syntax to API and advanced usage.
For every section an embedded sandbox with related code is available to play with. The sandbox allows you to write Sactory code and immeditely see the result of the transpiled code when pressing run or hitting ctrl-s. An extended version of the sandbox is also available in its own page, with more advanced functionality like visualization of the generated code, saving of code snippets and sharing.
This guide is also available with interactive examples as a tour.

This guide assumes intermediate to advanced knowledge of JavaScript, especially the ECMAScript 2015+ features and the DOM. It is very difficult to understand Sactory's syntax without knowing JavaScript's first, so if you are not familiar with these technologies it might be a good idea to improve your skills in the used technologies and JavaScript in general.

Also note that all the examples in the guide are written using ES6 syntax and the interactive examples will not run on outdated browsers.

#Features


The main goal of Sactory is...