PageSourceSearch

https://railsblocks.com/assets/controllers/index-ddceca80534a826b5…6bb2e10f6e25d3c462fcaeb966f4ec51a349312e.js

js railsblocks.com collected 2026-09-25 20:23:31 UTC 822 bytes, 15 lines download raw bytes

1// Import and register all your controllers from the importmap under controllers/*
2
3import { application } from "controllers/application";
4
5// Eager load all controllers defined in the import map under controllers/**/*_controller
6import { eagerLoadControllersFrom } from "@hotwired/stimulus-loading";
7eagerLoadControllersFrom("controllers", application);
8
9// Lazy load controllers as they appear in the DOM (remember not to preload controllers in import map!)
10// import { lazyLoadControllersFrom } from "@hotwired/stimulus-loading";
11// lazyLoadControllersFrom("controllers", application);
12
13// Import and register all TailwindCSS Components or just the ones you need
14import { Toggle } from "tailwindcss-stimulus-components";
15application.register("toggle", Toggle); // Used for snippets, not used in the components though.;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.