From 5bb664acd6f46dc4175e7ea1f1ef0c60cccada1b Mon Sep 17 00:00:00 2001 From: Joel Drapper Date: Fri, 14 Feb 2025 15:09:20 +0000 Subject: [PATCH] LSP docs for Phlex.html and Phlex.svg Co-Authored-By: Will Cosgrove --- lib/phlex.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/phlex.rb b/lib/phlex.rb index 9a0506ad..5518f480 100644 --- a/lib/phlex.rb +++ b/lib/phlex.rb @@ -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 @@ -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