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

DSD. You know it. You want it. You love it. #763

Merged
merged 14 commits into from
Jun 18, 2023
Merged

DSD. You know it. You want it. You love it. #763

merged 14 commits into from
Jun 18, 2023

Conversation

jaredcwhite
Copy link
Member

@jaredcwhite jaredcwhite commented May 21, 2023

Update: this branch now also includes #765

Render DSD templates like a boss with the dsd helper / Liquid tag. 😎

Also provides dsd_style helper to inline CSS inside of a DSD template.

Todo:

  • Pull in Turbo Shadow for the Turbo configuration so it polyfills DSDs
  • Docs
  • Tests
  • Stretch goal: build (optional) Bridgetown layouts which use DSD right out of the gate. Defaults are important!

@render
Copy link

render bot commented May 21, 2023

@render
Copy link

render bot commented May 21, 2023

@@ -523,6 +523,10 @@ def chomp_locale_suffix!(path, locale)
end
end

def dsd_tag(input)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do you feel about allowing the shadowrootmode to be passed in?

def dsd_tag(shadow_root_mode: :open, input)
  raise ArgumentError unless [:open, :closed].contains? shadow_root_mode
  %(<template shadowrootmode="#{shadow_root_mode}">#{input}</template>).html_safe
end

jaredcwhite and others added 8 commits June 7, 2023 16:41
Co-authored-by: Ayush Newatia <ayush@hey.com>
* Retool esbuild configuration and add islands architecture

* Add bundled configuration for <is-land>
* Also remove previously deprecated non-Zeitwerk plugin support
* Fix some subtle Watcher bugs
* Improve esbuild glob functionality

* fix cucumber feature for assets

* Add preliminary documentation for Islands
@jaredcwhite jaredcwhite merged commit 9f12bd0 into main Jun 18, 2023
@jaredcwhite jaredcwhite deleted the dsd branch June 18, 2023 14:20
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.

2 participants