This repository has been archived by the owner on Jun 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Templates variables
Alexanderius edited this page Jun 26, 2019
·
4 revisions
You can use variables provided by the framework in any HTML templates:
-
{SiteTitle}
- site title from the string table -
{SV:SiteUrl}
- site url
Example: will be http://mysite.org
if current page link is http://mysite.org/add/user
-
{~}
- site virtual path
Example: will be /mysite
if current page link is http://somedomain.org/mysite/add/user
will be empty if current page link is http://somedomain.org/add/user
-
{SV:TemplatesDir}
- templates location
Example: will be Templates
if Environment.TemplatesPath
is Templates
-
{SV:Style}
- current site style
Example: will be Main
if Environment.SiteStyle
is Main
-
{SV:Language}
- current request language
Example: will be en
if LanguageManager.Language
is en
-
{SV:LanguageExt}
- current request language with dot
Example: will be .en
if LanguageManager.Language
is en
-
{SV:LanguageCultureName}
- Thread.CurrentThread.CurrentCulture culture name
Example: en-US
-
{SV:LanguageCultureNameExt}
- Thread.CurrentThread.CurrentCulture culture name with dot
Example: will be .en-US
- Getting Started
- Main Simplify.Web principles
- Simplify.Web controllers
- Simplify.Web views
- Simplify.Web templates
- Simplify.Web configuration
- Templates variables
- Static content
- Template factory
- Data collector
- String table
- File reader
- Web context
- Environment
- Language manager
- Redirector
- HTML