-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Support .Args.XYZ instead of stencil.Arg "XYZ" #48
Comments
Yeah, this makes sense to do. I think we probably need to move the JSON schema validation to before render time as well. |
Hmmmm, I'm not sure this is a good idea. That would break the default logic, which would make dealing with arguments significantly more annoying. For example, I'll still consider this, but I'm not sure if it's worth it. |
Oh are there defaults supported by the schema? I'm not sure I've ever used those... I would expect that defaults are made through usage in templates, not the schema. (i.e. |
Hmmm, that's fair. I guess most people would be more familiar with |
Yeah that's the system I used several places. Basically a COALESCE() operator. |
Args are so common, for quality-of-life, just fill them into the base go-template vars under Args or Arg
The text was updated successfully, but these errors were encountered: