-
-
Notifications
You must be signed in to change notification settings - Fork 10
Templates variables
Alexanderius edited this page Jul 3, 2025
·
2 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 the current page link is http://mysite.org/add/user
-
{~}- site virtual path
Example: will be /mysite if the current page link is http://somedomain.org/mysite/add/user
Will be empty if the 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.CurrentCultureculture name
Example: en-US
-
{SV:LanguageCultureNameExt}-Thread.CurrentThread.CurrentCultureculture 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
- Dynamic environment
- Language manager
- Redirector
- HTML