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
Which would be a smaller and curated version of what we assign to every resource internally. Instead of adding lots of NameOriginal variants, you would be able to do:
.PathInfo.Name // => roses-are-red.en.jpg
.PathInfo.NameNoIdentifier // => roses-are-red
.PathInfo.Unnormalized.NameNoIdentifier // => Roses are red
.PathInfo.Path
I can outline such an interface if people think it's a good idea ...?
Based on the context here I would personally find value in being able to get the extension of a resource without causing it to be published (e.g. because I'm going to rename it).
How would this interact with files that are compiled and have their extension change?
Given
{{ with resources.Get "main.ts" }}
{{ $resource := . | js.Build }}
{{ end }}
Would $resource.PathInfo.Name be main.ts or main.js?
Which would be a smaller and curated version of what we assign to every resource internally. Instead of adding lots of
NameOriginal
variants, you would be able to do:I can outline such an interface if people think it's a good idea ...?
/cc @jmooring
The text was updated successfully, but these errors were encountered: