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.expand_path("../assets/funicular.css", __dir__)

Class Method Summary collapse

Instance Method Summary collapse