Extension:ClientSide
From MediaWiki.org
|
Release status: unknown |
|
|---|---|
| Description | |
| Author(s) | Trevor Parscal |
| License | No license specified |
| Download | Download snapshot |
|
check usage (experimental) |
|
[edit] Description
Provides functions for generating code in client-side formats such as HTML, CSS and JavaScript. Required by Extension:CommunityVoice.
[edit] Purpose
The concept of this code is to provide procedural constructs for generating code which will be sent to the client. This is an alternative to embedding these client side languages as string throughout the PHP. This approach is inline with the design of the Xml class present in the MediaWiki core, however ClientSide takes the concept a step further with CSS and JavaScript generation while providing a somewhat more flexible function argument structure.
[edit] Installation
- From a command line while at the root of your wiki, call the following:
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/ClientSide/ extensions/ClientSide
- Then, in your LocalSettings.php file, add the following line for the ClientSide extension:
require_once( "$IP/extensions/ClientSide/ClientSide.php" );