ariatemplates/snippets.ariatemplates.com — pull request #12 by simonarbuckle (2014-01-10 16:32:08+00:00)
Title: Updated snippets to support testing on local versions of AT framework.

**_In_** order to test and fix samples, or even to create new samples for features in the AT framework that haven't been released yet, it is necessary to be able to run the server using a local version of the AT framework...

**_Also_** included in this update, there is now the additional of optimist to pass in named arguments for the documentationPath, frameworkPath, frameworkVersion, frameworkFileName...

**_And_** it is also now possible to run the server without any arguments passed in, this defaults to the CDN for the framework (latest version) and GitHub for the samples.

Redirecting AT framework:

open source local unminified:
--fp ../at_simonarbuckle/build/target/bootstrap
--fv 1.4.14

open source local minified:
--fp ../at_simonarbuckle/build/target/production
--fv 1.4.14

Redirecting the framework (unminified) and samples locally:
node server.js --fp ../at_simonarbuckle/build/target/bootstrap --fv 1.4.14 --dp ../documentation-code

**_Note:_** even if you run the server redirecting the framework locally, you can still override this by adding ?atversion=1.4.14 to the browser URL and reloading the page, then the framework will be requested from the CDN using the AT version you specified.