Skip to content

Add remote support in resources.Get #5255

@akshaybabloo

Description

@akshaybabloo

It'll be nice to have a getCSS function for external URL where the caching are not in our hands and also if we want to make the CSS an inline version instead of adding a link to the external site. Maybe by doing something like:

{{ $externalCSS := .getCSS "https://fonts.googleapis.com/css?family=Space+Mono:400,700" }}
<style>
     {{ $externalCSS.Content | safeCSS }}
</style>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions