@using PlotLine.Models.WritingSolver @model SolverPageView @inject PlotLine.Services.WritingSolverResults Results @{ Layout="_PublicLayout"; }
@if(Model.Graph.IsDemo) {

Demonstration content · The curated collection is on its way.

} @if(Model.IsFeature) { var feature=(SolverFeature)Model.Page;

@feature.Title

@feature.Summary

@foreach(var paragraph in feature.Content.Split("\n\n")) {

@paragraph

} @if(feature.Screenshot is not null) { @feature.Title workspace in PlotDirector }

Writing problems this can help with

@foreach(var solution in Model.Graph.Solutions.Where(s=>s.Active && s.Features.Any(f=>f.Feature==feature.Id))) {

@solution.PageTitle

}

See PlotDirector in action →

} else { var presentation = Model.Journey is {} journey ? Results.Present(journey.Outcome) : Results.Present(new SolverOutcome(null, new[] { (SolverSolution)Model.Page }, new Dictionary(), Array.Empty())); @if(presentation is not null) { } else { } @if(Model.Journey is {} completed) {
@if(ViewData["BackState"] is string back) { ← Back } Start again
} var solution=(SolverSolution)Model.Page; @if(presentation is not null) {
More about this writing problem

@solution.Summary

@foreach(var paragraph in solution.Content.Split("\n\n")) {

@paragraph

} @foreach(var link in solution.Features.Where(f=>f.Primary)) { var feature=Model.Graph.Features.Single(f=>f.Id==link.Feature);

Explore @feature.Title →

}
} @if(solution.Related.Count>0) {

You might also find this useful

} @foreach(var id in solution.Related) { var related=Model.Graph.Solutions.Single(s=>s.Id==id && s.Active);

@related.PageTitle

} } @if(Model.Page.Questions.Count>0) {

Questions this helps answer

    @foreach(var question in Model.Page.Questions) {
  • @question
  • }
} Find a way through your writing problem →