
- Keyless
- Mobile untested

Advertisement
@{
var a = 1;
var b = 2;
}
Basic Calc
a + b = @(a + b){{ products
|> groupBy => it.Category
|> map => { Category: it.Key, MostExpensivePrice: it.max(p => p.UnitPrice) }
|> htmlDump }}{{#if test.isEven() }}
{{test}} is even
{{else}}
{{test}} is odd
{{/if}}```code
#if test.isEven()
`${test} is even`
else
`${test} is odd`
/if
```var context = new ScriptContext {
Args = { ... }, // Global Arguments available to all Scripts, Pages, Partials, etc
ScriptMethods = { ... }, // Additional Methods
ScriptBlocks = { ... }, // Additional Script Blocks
FilterTransformers = { .. }, // Additional Stream Transformers
PageFormats = { ... }, // Additional Text Document Formats
Plugins = { ... }, // Encapsulated Features e.g. Markdown, Protected or ServiceStack Features
ScanTypes = { ... }, // Auto register Methods, Blocks and Code Page Types
ScanAssemblies = { ... }, // Auto register all Methods, Blocks and Code Page Types in Assembly
}.Init();// render code statements
var output = context.RenderCode("now |> dateFormat('HH:mm:ss')");
// async
var output = await context.RenderCodeAsync
Advertisement
Share what works, ask questions, or report an issue.
No comments yet. Be the first to share your experience with this script.
10 lines · 460 B
PeterCaneBlue Lock Farm
SarahHendersonFunky Duels!
KJKJx44One Tap