This is the source code. You can use it locally to experiment with AT.
If you want to try AT,
This is a pre-packaged version of AT where files are minified and grouped together in bundles.
To get started, copy the aria
folder to the root of your web server and include both the framework bootstrap and the skin in your HTML page:
<script type="text/javascript" src="/aria/ariatemplates-1.2.0.js"></script>
<script type="text/javascript" src="/aria/css/atskin-1.2.0.js"></script>
This is the development, un-minified, un-packaged version of the framework.
To get started, copy the aria
folder to the root of your web server and include the bootstrap file in your HTML page:
<script type="text/javascript" src="/aria/bootstrap.js"></script>
Issue npm install ariatemplates
to grab the latest stable version from npm.
Then use require('ariatemplates')
to load the framework. This will create two global variables,
aria
and Aria
. Some core functionalities will be preloaded, to use the others, you have to load them
using Aria.load
. That function expects a JSON object with classes
node (Array
), and optionally
oncomplete
and onerror
callbacks.
Below is a simple REPL excerpt to get started with:
$ npm install ariatemplates
...
$ node
> require('ariatemplates')
> aria.utils.String.substitute('Hello %1', ['John'])
'Hello John'
> Aria.load({ classes : ["aria.utils.Math"] })
> aria.utils.Math.normalize(711, 0, 500)
500
Alternatively, if you've cloned our GH repo and want to experiment with the code as you change it:
$ git clone https://github.com/ariatemplates/ariatemplates.git
...
$ node
> require('./ariatemplates/src/aria/node.js')
...
Head over to our Hello World guide to learn more. For any question, send us an email [email protected]