This repository was 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
Getting started
Alexanderius edited this page Aug 28, 2017
·
10 revisions
To create your first Simplify.Web application you can install the VS 2017 Package (latest Simplify.Web) or VS 2013-2015 Package (Simplify.Web 1.1) from the visual studio online gallery, and then just use the respective project templates:
Then just compile (it will download required nuget packages at first build) and run it.
New project structure:
Start debugging and after launch you will see "Hello world!" in default web-site page:
-
Startup.cs
file - startup file for your application, here your should initialize OWIN components. Simplify.Web is also an owin middleware;
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.UseSimplifyWeb();
}
}
-
App_Data
folder - storage point for file-based data stores (for example string table files); -
App_Data/StringTable.en.xml
- string table default file, contains string table localizable items;
<?xml version="1.0" encoding="utf-8" ?>
<items>
<item name="SiteTitle" value="WebApplication5" />
<item name="HtmlListDefaultItemLabel" value="Not selected..." />
</items>
SiteTitle - default and prefix site title, used by framework
HtmlListDefaultItemLabel - lists generator control default item, used by ListsGenerator class
-
Templates
- folder for storing HTML template files, should contain atleastMaster.tpl
file; -
Templates/Master.tpl
file - web-site master template file, typically contains base layout for web-site (html, header, body tags); -
Controllers
folder - folder for placing your controller classes (can be any folder); -
Views
folder - folder for placing your views classes (can be any folder);
- by default "styles", "scripts", "images", "content" and "fonts" folders is opened for read access. Static files (css, js, images etc.) should be placed here
You can find example Simplify.Web application which is using controllers, views, templates, localization, js/css frameworks, authentication and so on here
- 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