Download the PHP package anshu-krishna/template-server without Composer
On this page you can find all versions of the php package anshu-krishna/template-server. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download anshu-krishna/template-server
More information about anshu-krishna/template-server
Files in anshu-krishna/template-server
Download anshu-krishna/template-server
More information about anshu-krishna/template-server
Files in anshu-krishna/template-server
Vendor anshu-krishna
Package template-server
Short Description A light-weight framework for serving webpages based on templates
License MIT
Package template-server
Short Description A light-weight framework for serving webpages based on templates
License MIT
Please rate this library. Is it a good library?
Informations about the package template-server
Krishna Template Server (KriTS)
KriTS is a light-weight framework for serving webpages based on templates.
Under construction. Check later.
Usage:
RouteNode:
$pre
, $here
& $post
are tempates and can have following values:
- null: It means there is no template
- array: One of more string values as described below
- string: It can be used in following ways
Default
: plaintext as template.@file_path
: loads file at path'file_path'
relative to the defaulttemplates_path
#file_path
: loads file at absolute path'file_path'
RouteExpression:
$route
can be a RouteNode
object or a string containing path of route file.
If string starts with '@' then file_path is relative to the default routes_path.
If string starts with '#' then file_path is absolute.
$exp
can have following formats:
'plaintext'
: matches'plaintext'
'@var1'
: matches anything. The matched value is assigned toRouter::$path_vars
list withvar1
as key.'@var2=pattern'
: matchesRegExp
defined bypattern
. The matched value is assigned toRouter::$path_vars
list withvar2
as key.'@var3~pattern'
: matchesRegExp
defined bypattern
with case-insensitive flag. The matched value is assigned toRouter::$path_vars
list withvar3
as key.
All versions of template-server with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
The package anshu-krishna/template-server contains the following files
Loading the files please wait ....