-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add transform.Unmarshal func #5428
Comments
Awesome! This would guess the language ! Even better than GetJSON then.
Slightly off topic but I’m not sure of what this is referring to as GetJSON already supports remote (http) as I understand it. |
It's a fairly educated guess ...
It does. But |
I may only be asking because of a lack of understanding of the "unmarshaling" process but why not have this available as a resource variable or method, like |
Instead of me spending time on the "why", could you elaborate on the "why not"? What is the benefit of your way vs my way? |
My way does not introduce a new global transformation resource method. Mainly because I don't think unmarshaling is going to transform the resource and make available the transformed file on disk like Then again, I may be missing something. |
You are right in that it doesn't transform the Resource into another Resource -- so it's a function. So, this discussion is: Method vs function. I would say that my main reasons to prefer the latter is:
|
@regisphilibert I have changed the title of this issue. We already have So, adding |
Awesome! Now everything can be unmarshalled, even front matter params (which could very well hold JSON strings with some remote data sources)! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
So we can do:
The above will obviously make even more sense/value once we get remote support in
Get
./cc @regisphilibert
The text was updated successfully, but these errors were encountered: