#Script is available for .NET Core or .NET v4.5+ Framework projects from the ServiceStack.Common NuGet Package:

PM> Install-Package ServiceStack.Common

It's also available for ASP.NET Core Apps on the .NET Framework by installing:

PM> Install-Package ServiceStack.Common.Core

You're now all set to have fun with #Script! Start by evaluating a script:

var context = new ScriptContext().Init();
var output = context.EvaluateScript("The time is now: {{ now | dateFormat('HH:mm:ss') }}");

Configure with ServiceStack

To utilize Sharp Pages in ServiceStack, register the SharpPagesFeature plugin:

public void Configure(Container container)
    Plugins.Add(new SharpPagesFeature());

Starter Project Templates

The Starter Projects below provide a quick way to get started with a pre-configured ServiceStack Template Web App.

.NET Core Bootstrap Template

Create a new Templates Website .NET Core 2.1 App with web new:

    $ dotnet tool install --global web 

    $ web new templates ProjectName
.NET Core Starter Template

ASP.NET v4.5 Bootstrap Starter

For ASP.NET v4.5+ projects create a new ServiceStack ASP.NET Templates with Bootstrap from the VS.NET Templates in ServiceStackVS VS.NET Extension to create an ASP.NET v4.5 Project using ServiceStack's recommended project structure:

ASP.NET v4.5 Starter Template

SharpApp Project Templates

Sharp Apps is our revolutionary new approach to dramatically simplify .NET Wep App development by using ServiceStack Templates to build entire Websites in a live real-time development workflow without any C# and requiring no development environment, IDE’s or build tools - dramatically reducing the cognitive overhead and conceptual knowledge required for developing .NET Core Websites in a powerful dynamic templating language that's simple, safe and intuitive enough that Web Designers and Content Authors can use.

Bare SharpApp

To start with a simple and minimal website, create a new bare-webapp project template:

$ web new bare-webapp ProjectName

This creates a multi-page Bootstrap Website with Menu navigation that's ideal for content-heavy Websites.

Parcel SharpApp

For more sophisticated JavaScript Sharp Apps we recommended starting with the parcel-webapp project template:

$ web new parcel-webapp ProjectName

This provides a simple and powerful starting template for developing modern JavaScript .NET Core Sharp Apps utilizing the zero-configuration Parcel bundler to enable a rapid development workflow with access to best-of-class web technologies like TypeScript that's managed by pre-configured npm scripts to handle its entire dev workflow.

SharpApp Examples

View our Example Sharp Apps to explore different features and see examples of how easy it is to create with Sharp Apps:

made with by ServiceStack