You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a directory: C:\temp\templates
With the files: test.liquid and _myInclude.liquid
test.liquid has the following:
{% include myInclude %}
and _myInclude.liquid has:
Hello World!
My code looks like this:
string path = @"C:\temp\templates\test.liquid";
string dir = Path.GetDirectoryName(path);
var fs = new LocalFileSystem(dir);
Template.FileSystem = fs;
And from that I get the following error:
Liquid error: Value cannot be null. Parameter name: input
Occurs in LocalFileSystem.cs, FullPath(string), line 40
The text was updated successfully, but these errors were encountered:
Thanks for logging this - the error message was "wrong" because we were not properly handling missing / null templates. My latest commit (f6d8431) fixes this, so the error message is clearer.
I have a directory:
C:\temp\templates
With the files: test.liquid and _myInclude.liquid
test.liquid has the following:
{% include myInclude %}
and _myInclude.liquid has:
Hello World!
My code looks like this:
string path = @"C:\temp\templates\test.liquid";
string dir = Path.GetDirectoryName(path);
var fs = new LocalFileSystem(dir);
Template.FileSystem = fs;
And from that I get the following error:
Liquid error: Value cannot be null. Parameter name: input
Occurs in LocalFileSystem.cs, FullPath(string), line 40
The text was updated successfully, but these errors were encountered: