@using PlotLine.Models.WritingSolver @model SolverPageView @inject PlotLine.Services.WritingSolverResults Results @inject PlotLine.Services.WritingProblemEditorial Editorial @{ 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
} @if(Model.Journey is {} reviewJourney) { } var solution=(SolverSolution)Model.Page; var permanent=Editorial.Find(solution.Id); @if(permanent is not null) { @foreach(var link in solution.Features.Where(f=>f.Primary)) { var feature=Model.Graph.Features.Single(f=>f.Id==link.Feature);

Explore @feature.Title →

}

Browse this problem area →

} } @if(Model.Page.Questions.Count>0 && (Model.IsFeature || Editorial.Find(Model.Page.Id) is null)) {

Questions this helps answer

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