Skip to content

Commit

Permalink
LSP docs for Phlex.html and Phlex.svg
Browse files Browse the repository at this point in the history
Co-Authored-By: Will Cosgrove <[email protected]>
  • Loading branch information
joeldrapper and willcosgrove committed Feb 14, 2025
1 parent b25fb0f commit 5bb664a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/phlex.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def self.eager_load
end
end

# Generate an HTML string using Phlex’ HTML DSL
def self.html(&block)
HTML.call do |component|
receiver = block.binding.receiver
Expand All @@ -60,6 +61,7 @@ def self.html(&block)
end
end

# Generate an SVG string using Phlex’ SVG DSL
def self.svg(&block)
SVG.call do |component|
receiver = block.binding.receiver
Expand Down

0 comments on commit 5bb664a

Please sign in to comment.