Skip to content
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 resource.Templify #4449

Closed
bep opened this issue Feb 25, 2018 · 2 comments
Closed

Add resource.Templify #4449

bep opened this issue Feb 25, 2018 · 2 comments

Comments

@bep
Copy link
Member

bep commented Feb 25, 2018

This relates to #4446 -- but deserves its own issue.

resource.SASS etc. should also work with the output types, and that will enable template support, but it would also be really cool and useful if we could do:

{{ $css :=  resource "main.scss" | resource.Templify .Site |  resource.Sass | resource.Digest | resource.Fingerprint }}

And then in main.scss:

$white:    {{ .Params.colors.white }} !default;
...

This should give some pretty powerful theming options.

Implementation notes:

  • text vs HTML
  • Maybe custom delimiters ("{{" and "}}")
@bep bep added this to the v0.38 milestone Feb 25, 2018
@bep bep modified the milestones: v0.38, v0.39 Mar 11, 2018
@bep bep modified the milestones: v0.39, v0.40 Apr 9, 2018
@bep bep modified the milestones: v0.40, v0.41 Apr 20, 2018
@bep bep modified the milestones: v0.41, v0.42 May 4, 2018
@bep bep modified the milestones: v0.42, v0.43 Jun 5, 2018
@bep bep modified the milestones: v0.43, v0.44 Jun 30, 2018
@bep bep modified the milestones: v0.44, v0.45, v0.46 Jul 10, 2018
@hanzei
Copy link

hanzei commented Jul 21, 2018

Hugo 0.43 added resources.ExecuteAsTemplate. Does this cover the whole issue?

@bep bep closed this as completed Jul 21, 2018
@github-actions
Copy link

github-actions bot commented Mar 1, 2022

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants