Skip to content

Introduce ExternalScript class#21

Merged
sbsoftware merged 2 commits intomainfrom
feature/HTML-43
Jan 31, 2025
Merged

Introduce ExternalScript class#21
sbsoftware merged 2 commits intomainfrom
feature/HTML-43

Conversation

@sbsoftware
Copy link
Owner

@sbsoftware sbsoftware commented Jan 31, 2025

This is useful to add external scripts by URL to ToHtml::Layout:

class MyLayout < ToHtml::Layout
  add_to_head ExternalScript.new("https://example.com/example.js")
end

@sbsoftware sbsoftware merged commit 26821d2 into main Jan 31, 2025
1 check passed
@sbsoftware sbsoftware deleted the feature/HTML-43 branch January 31, 2025 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant