1using System.Diagnostics;
28 public override string Name =>
"docs";
52 BadRuntimeSettings.Instance.CatchRuntimeExceptions =
false;
53 BadRuntimeSettings.Instance.WriteStackTraceInRuntimeErrors =
true;
54 string outFile = Path.Combine(Path.GetTempPath(), Path.GetTempFileName() +
".html");
56 File.WriteAllText(outFile, htmlString);
57 Process p =
new Process();
58 p.StartInfo =
new ProcessStartInfo(outFile)
60 UseShellExecute =
true,
64 return Task.FromResult(0);
Implements a Html Template.
static BadHtmlTemplate Create(string file, IFileSystem? fileSystem=null)
Creates a new Template.
string Run(object? model=null, BadHtmlTemplateOptions? options=null, BadScope? caller=null)
Runs the Template with the specified arguments.
Options for the Html Template Engine.
Exposes the BadScript Runtime Functionality to Consumers.
Implements a Console System that uses a settings object of Type T.
Runs the Html Template Engine.
BadDocsSystem(BadRuntime runtime)
Creates a new BadHtmlSystem instance.
static string TemplatePath
override Task< int > Run(BadDocsSystemSettings settings)
Settings for the Documentation Subsystem.
Public interface for the filesystem abstraction of the BadScript Engine.
static IFileSystem Instance
File System implementation.
Gets thrown by the runtime.
BadSettings? FindProperty(string propertyPath)
Finds a property based on the property path relative to this object.
Helper class that can be used to automatically load a settings object from a file.
static BadSettings RootSettings
Returns the Root Settings Object.
void CreateDirectory(string path, bool recursive=false)
Creates a new directory.
A Html Template Generator based on BadScript2.
Contains the 'html' console command implementation.
Contains IO Implementation for the BadScript2 Runtime.
Contains the Error Objects for the BadScript2 Language.
Contains Runtime Settings Objects.
Contains the Settings Implementation.