ThePartsOfTemplateLibraryActuallyUsedInSlashCode: Difference between revisions

From SoylentNews
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:


Knowing this can save some time reading docs.
Knowing this can save some time reading docs.
The template language keywords are always first and appear to be always uppercase. The normal variables all appear to be lowercase.


<h3>Most commonly used feature</h3>
<h3>Most commonly used feature</h3>

Revision as of 18:29, 28 February 2014

CssWork parent

The Parts Of Template Library Actually Used In Slash Code

Knowing this can save some time reading docs.

The template language keywords are always first and appear to be always uppercase. The normal variables all appear to be lowercase.

Most commonly used feature

The most commonly used feature is simply using the template library to print a variables value

The specific template library keywords found in Slash templates

(the numbers roughly correspond to frequency of use)

      1 ELSE
      1 FOR
      1 INCLUDE
      2 ELSE
      3 BLOCK
      3 FOREACH
      3 SWITCH
      4 ELSIF
      4 FOR
      6 UNLESS
      8 END
      8 PROCESS
     72 CASE
    176 IF

Most of these are common straightforward programming constructs, except:

BLOCK -

PROCESS -