Knowledge Base

What is SPL?

Options: Edit

SPL stands for Spruz Program Language. SPL was designed as a simplified programming language for talking to the Spruz Engine and returning values or functions based on the data conditions at that time. This allows you to add dynamic features into otherwise static pages. Unlike other programming languages, SPL is very easy to use because it's based on individual values.

As an example, if you wanted to display the user's name followed by the local system time for the server you would use the following:

    Hello $mnick, the local server date time is $now

    This would return the below example

    Hello Guest or DISPLAYNAME, the local server time is 1/20/2007.


SPL has several data exchange types

  1. Flat Data - These are codes that can be used in almost any admin controlled page or element. Flat Data returns information based on the user that is logged in or viewing the page. Flat Data is used in the example above.
  2. Row Return Data - Row return SPL code can be used with components to expand the functionality and customization of data returned, this would be used in areas that would be several rows of information. A good example of this is a Clan/Guild roster system. You can use SPL values like $member-nick that will display the display name and link it to there profile or $member-awards that draws the Member Award features. By using this format you would be able to easily tell the site what information you would want to display.
  3. SPL Functions - These are SPL code values that can be used in plain text format that will draw whole elements or tie into other features. Example: the discussion element can be created using an SPL Function.

How do I get SPI Code?

Within our Knowledge base we will have information on values and where they can be used. The cool part about SPL is the ability to display dynamic information within a static page.

Author:Edvard_D
Published:Sep 14th 2010
Modified:Sep 14th 2010

This website is powered by Spruz