EvalShortcode Class
Evaluates C# code.
Namespace
Statiq.Core
Interfaces
Base Types
EvalShortcode
Shortcode
object
IShortcode

Syntax

public class EvalShortcode : Shortcode, IShortcode

Examples

<?# Eval ?><?# return 1 + 2; ?><?#/ Eval ?>

Remarks

The current context and document are in-scope as Context and Document respectively and can be used from within the script.

Methods

Extension Methods