Module: Funicular::Helpers::PicorubyHelper
- Defined in:
- lib/funicular/helpers/picoruby_helper.rb
Overview
View helpers exposed to ActionView through Funicular::Railtie.
Constant Summary collapse
- CDN_URL_TEMPLATE =
"https://cdn.jsdelivr.net/npm/@picoruby/wasm-wasi@%<version>s/dist/init.iife.js"- LOCAL_PATHS =
{ local_debug: "/picoruby/debug/init.iife.js", local_dist: "/picoruby/dist/init.iife.js" }.freeze
- LOCAL_VARIANTS =
{ local_debug: "debug", local_dist: "dist" }.freeze
- BASE_CSS_PATH =
Minimal CSS the gem ships for class names it emits itself (e.g. FormBuilder error states). Read once; see assets/funicular.css.
File.("../assets/funicular.css", __dir__)
Class Method Summary collapse
Instance Method Summary collapse
-
#funicular_app_container(html = "", id: "app", **options) ⇒ Object
Renders the SSR #app container with the server-rendered HTML inside.
-
#funicular_plugin_include_tags ⇒ Object
Renders registered Funicular plugin browser assets.
-
#funicular_state_tag(state = {}) ⇒ Object
Emits the initial state for client hydration as a global JS variable.
-
#picoruby_include_tag(source: nil, base_styles: true, **options) ⇒ Object
Renders a