Evaluates C# code.
- Namespace
- Statiq
.Core - Interfaces
- Base Types
-
- object
- Shortcode
graph BT
Type-->Base0["Shortcode"]
click Base0 "/api/Statiq.Common/Shortcode"
Base0-->Base1["object"]
Type-.->Interface0["IShortcode"]
click Interface0 "/api/Statiq.Common/IShortcode"
Type["EvalShortcode"]
class Type type-node
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
Name | Return Value | Summary |
---|---|---|
ExecuteAsync |
Task |