Skip to content

Commit

Permalink
Merge pull request #23 from RachBreeze/feature/speed_improvements_and…
Browse files Browse the repository at this point in the history
…_template_fixes

Feature/speed improvements and template fixes
  • Loading branch information
Mulliman authored Apr 16, 2023
2 parents 277bee0 + f90935f commit a0db8fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Source/XStaticCore/XStatic.Core/Generator/GeneratorBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ protected string RunTransformers(string fileData, IEnumerable<ITransformer> tran
{
if (transformers == null) return fileData;

if (fileData==null) return fileData;
var context = GetContext();
foreach (var transformer in transformers)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ public override async Task<GenerateItemResult> GeneratePage(int id, int staticSi
{
return null;
}

if (node.TemplateId== null)
{
return null;
}
try
{
var url = node.Url(_publishedUrlProvider, mode: UrlMode.Relative);
Expand Down

0 comments on commit a0db8fb

Please sign in to comment.