Doc updates.
This commit is contained in:
1 parent
c4f0fab8c7
commit
6e25db1e44
14 files changed
+2523
-698
No files matched your search
+77
-14
@@ -1,4 +1,4 @@
|
||||
\documentclass{refart}
|
||||
\documentclass{book}
|
||||
|
||||
\title{JET Extension Tags}
|
||||
\author{Bradford Matthew Arant Sr.}
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
\tableofcontents
|
||||
|
||||
\chaptermark{Introduction}
|
||||
\chapter{Introduction}
|
||||
|
||||
JET will pass through the untagged areas to the output without any
|
||||
modifications. Data contained within the tags may modify their
|
||||
@@ -20,7 +20,15 @@ itself is not passed to the output and will not appear in the output.
|
||||
Skip Blank Lines options on containers will skip passing any blank
|
||||
lines or line containing only whitespace to the output.
|
||||
|
||||
\chaptermark{Tags and Attributes}
|
||||
\section{Use Cases}
|
||||
|
||||
\subsection{World Wide Web Site}
|
||||
|
||||
\subsection{API Handling}
|
||||
|
||||
\subsection{Asterisk Dial Plan Generator Tool}
|
||||
|
||||
\chapter{Tags and Attributes}
|
||||
|
||||
XML style tagging is used to insert functions and other behaviors into
|
||||
the script. As the document contents are output a tag may be inserted
|
||||
@@ -29,10 +37,10 @@ to perform the desired function and affect the output.
|
||||
Tag attributes are used to pass parameters into the operations and
|
||||
functionality for each tag.
|
||||
|
||||
Outputting a database from mysql may be performed using the \<mysql\> tag
|
||||
in combination with the \<ifrow\>, \<whilerow\> and \<sql\> tags.
|
||||
Outputting a database from mysql may be performed using the <mysql\> tag
|
||||
in combination with the <ifrow\>, <whilerow\> and <sql\> tags.
|
||||
|
||||
\sectionmark{User Defined Tags and Tag Libraries}
|
||||
\chapter{User Defined Tags and Tag Libraries}
|
||||
|
||||
You can define your own tag definitions and use them within your JET
|
||||
scripts.
|
||||
@@ -63,7 +71,7 @@ higher tag.
|
||||
|
||||
|
||||
|
||||
\chaptermark{Variables and Variable Types}
|
||||
\chapter{Variables and Variable Types}
|
||||
|
||||
Variables are used to contain dynamic content values and can be
|
||||
sourced from several locations and limited in scope depending on use.
|
||||
@@ -77,7 +85,7 @@ variable types and a brief description of their source:
|
||||
|
||||
\begin{itemize}
|
||||
|
||||
\item Global - values can be initiaized using the set tag and
|
||||
\item Global - values can be initialized using the set tag and
|
||||
specifying the scope of global.
|
||||
|
||||
\item Local -
|
||||
@@ -85,6 +93,10 @@ specifying the scope of global.
|
||||
\item Keyword - within a tag's container we may access the keyword
|
||||
values specified on the containing tag.
|
||||
|
||||
\item Environment -
|
||||
|
||||
\item CGI Variables -
|
||||
|
||||
\end{itemize}
|
||||
|
||||
\section{Global Variables}
|
||||
@@ -116,18 +128,22 @@ The variable retrieved is not processed for variable resolution.
|
||||
|
||||
\section{Environment Variables}
|
||||
|
||||
Environment variables are values existing in the exported list of value/pairs as provided by the operating system process. Apache, NGINX as well as other HTML server platforms provide environment variables to describe the requests being handed in.
|
||||
|
||||
\section{CGI Variables}
|
||||
|
||||
When operating Jet in CGI mode you have access to the form data
|
||||
submitted by the remote client (usually a browser or curl request)
|
||||
using the POST method.
|
||||
|
||||
\chapter{Expressions}
|
||||
\sectionmark{Expressions}
|
||||
|
||||
Expressions are used to perform complicated calculations (arithmetic), perform
|
||||
comparisons between values (boolean), manipulate strings (string) or
|
||||
perform operations on dates (date).
|
||||
|
||||
\chapter{Expressions}
|
||||
|
||||
\section{Operators}
|
||||
|
||||
Operators are used to perform arithmetic or boolean operations on
|
||||
@@ -142,22 +158,59 @@ operators, as follows:
|
||||
|
||||
\end{itemize}
|
||||
|
||||
\subsection{Arithmentic Operators}
|
||||
\subsection{Arithmetic Operators}
|
||||
|
||||
\subsection{Boolean Operators}
|
||||
|
||||
|
||||
\section{Function Reference}
|
||||
|
||||
\section{Date Functions}
|
||||
|
||||
\subsection{unixtime}
|
||||
|
||||
\section{Math Functions}
|
||||
|
||||
\subsection{abs}
|
||||
|
||||
\subsection{acos}
|
||||
|
||||
Returns to arc-cosine of the given parameter.
|
||||
|
||||
\subsection{asin}
|
||||
|
||||
\subsection{atan}
|
||||
|
||||
\subsection{cos}
|
||||
|
||||
\subsection{max}
|
||||
|
||||
\subsection{min}
|
||||
|
||||
\subsection{pow}
|
||||
|
||||
\subsection{random}
|
||||
|
||||
Use the random function to return a random number between 0 and 1.
|
||||
|
||||
\subsection{sin}
|
||||
|
||||
\section{String Functions}
|
||||
|
||||
String functions are provided to accelerate the building and parsing of strings passed into the expression. Numbers can be treated as a string or a number depending on the function called and the data state of the values being manipulated.
|
||||
|
||||
\subsection{concat}
|
||||
|
||||
The concat tag is used to assemble a string by concatenating one or more values to formulate the resulting string.
|
||||
|
||||
|
||||
|
||||
\subsection{integer}
|
||||
|
||||
\subsection{left}
|
||||
|
||||
\subsection{random}
|
||||
\subsection{reverse}
|
||||
|
||||
Use the random function to return a random number between 0 and 1.
|
||||
\subsection{right}
|
||||
|
||||
\subsection{round}
|
||||
|
||||
@@ -167,7 +220,17 @@ number of digits after the decimal point.
|
||||
\subsection{substring}
|
||||
|
||||
Use the substring operation to extract a portion of a string and return
|
||||
the value as a string.
|
||||
the value as a string.
|
||||
|
||||
\subsection{tolower}
|
||||
|
||||
\subsection{toupper}
|
||||
|
||||
\subsection{trim}
|
||||
|
||||
\subsection{expr}
|
||||
|
||||
Use the expr function to parse the string contents contained in the expr string.
|
||||
|
||||
\chapter{Common Gateway Interface Features}
|
||||
|
||||
|
||||
Reference in new issue
Block a user