A component starts out as an ERB file.
Take text_field.component.erb
<% attr_accessor: :value %>
<input type="text" value="<%= value %>" %>Herb then compiles this into a class, which can be instantiated and called to render ERB:
A component starts out as an ERB file.
Take text_field.component.erb
<% attr_accessor: :value %>
<input type="text" value="<%= value %>" %>Herb then compiles this into a class, which can be instantiated and called to render ERB:
| import PullToRefresh from 'pulltorefreshjs'; | |
| var drawerOrPageShown = false | |
| function afterShowEvent(event){ | |
| const element = event.target | |
| if(element.tagName != "WA-PAGE" && element.tagName != "WA-DRAWER") { | |
| return | |
| } |
| This is a placeholder file so that the image can be uploaded |
| <%= javascript_include_tag "webawesome", type: :module, defer: true, data: {webawesome: '/assets/webawesome-dist'} %> |
| #!/usr/bin/env ruby | |
| require "open3" | |
| require "debug" | |
| require 'strscan' | |
| require 'json' | |
| require 'time' | |
| bundle_list, _status = Open3.capture2e("bundle list") |
| # Showing how to set the request variant | |
| def using_web_awesome? | |
| if has_current_organization? | |
| Flipper.enabled?(:web_awesome, current_organization) | |
| else | |
| Flipper.enabled?(:web_awesome, FlipperNoOrganizationActor.instance) | |
| end | |
| end |
| # frozen_string_literal: true | |
| class PracticalFramework::Components::Pagination < Phlex::HTML | |
| include Pagy::Frontend | |
| include FontAwesomeHelpers::ViewHelpers | |
| include Phlex::Rails::Helpers::FormWith | |
| include Phlex::Rails::Helpers::ContentTag | |
| include Phlex::Rails::Helpers::HiddenFieldTag | |
| attr_reader :request | |
| attr_accessor :pagy, :item_name, :i18n_key |
| // Example Swift configuration Actor; where the idea originated | |
| actor WorkoutAppConfiguration { | |
| static let instance = WorkoutAppConfiguration() | |
| public let authenticationSessionSchema: String | |
| public let HealthKitIdentifier: String | |
| init(){ | |
| self.authenticationSessionSchema = Bundle.main.infoDictionary!["AUTHENTICATION_SERVICES_CALLBACK_SCHEME"] as! String |
| # Use the latest 2.1 version of CircleCI pipeline process engine. | |
| # See: https://circleci.com/docs/configuration-reference | |
| version: 2.1 | |
| rails_build: &rails_build | |
| resource_class: small | |
| docker: | |
| - image: cimg/ruby:3.2-browsers | |
| - image: cimg/postgres:16.1 | |
| environment: |