Module: GovukPublishingComponents
- Defined in:
- lib/govuk_publishing_components.rb,
lib/govuk_publishing_components/config.rb,
lib/govuk_publishing_components/engine.rb,
lib/govuk_publishing_components/version.rb,
app/models/govuk_publishing_components/component_doc.rb,
lib/govuk_publishing_components/presenters/meta_tags.rb,
app/models/govuk_publishing_components/audit_comparer.rb,
app/models/govuk_publishing_components/component_docs.rb,
lib/govuk_publishing_components/presenters/schema_org.rb,
app/models/govuk_publishing_components/audit_components.rb,
lib/govuk_publishing_components/app_helpers/environment.rb,
lib/govuk_publishing_components/presenters/content_item.rb,
app/models/govuk_publishing_components/component_example.rb,
lib/govuk_publishing_components/app_helpers/asset_helper.rb,
lib/govuk_publishing_components/app_helpers/brand_helper.rb,
lib/govuk_publishing_components/app_helpers/table_helper.rb,
lib/govuk_publishing_components/presenters/button_helper.rb,
lib/govuk_publishing_components/presenters/select_helper.rb,
lib/govuk_publishing_components/presenters/shared_helper.rb,
app/models/govuk_publishing_components/audit_applications.rb,
lib/govuk_publishing_components/presenters/heading_helper.rb,
app/helpers/govuk_publishing_components/application_helper.rb,
lib/govuk_publishing_components/presenters/accordion_helper.rb,
app/controllers/govuk_publishing_components/audit_controller.rb,
lib/govuk_publishing_components/presenters/attachment_helper.rb,
lib/govuk_publishing_components/presenters/big_number_helper.rb,
lib/govuk_publishing_components/presenters/checkboxes_helper.rb,
lib/govuk_publishing_components/presenters/image_card_helper.rb,
lib/govuk_publishing_components/app_helpers/taxon_breadcrumbs.rb,
lib/govuk_publishing_components/minitest/component_guide_test.rb,
lib/govuk_publishing_components/presenters/breadcrumbs_helper.rb,
lib/generators/govuk_publishing_components/component_generator.rb,
lib/govuk_publishing_components/presenters/breadcrumb_selector.rb,
lib/govuk_publishing_components/presenters/intervention_helper.rb,
lib/govuk_publishing_components/presenters/contents_list_helper.rb,
lib/govuk_publishing_components/presenters/layout_footer_helper.rb,
lib/govuk_publishing_components/presenters/public_layout_helper.rb,
lib/govuk_publishing_components/presenters/absolute_links_helper.rb,
lib/govuk_publishing_components/presenters/contextual_navigation.rb,
lib/govuk_publishing_components/presenters/machine_readable/page.rb,
lib/govuk_publishing_components/presenters/translation_nav_helper.rb,
app/controllers/govuk_publishing_components/application_controller.rb,
lib/govuk_publishing_components/presenters/devolved_nations_helper.rb,
lib/govuk_publishing_components/presenters/emergency_banner_helper.rb,
lib/govuk_publishing_components/presenters/step_by_step_nav_helper.rb,
lib/govuk_publishing_components/presenters/component_wrapper_helper.rb,
lib/govuk_publishing_components/presenters/organisation_logo_helper.rb,
app/models/govuk_publishing_components/shared_accessibility_criteria.rb,
lib/govuk_publishing_components/presenters/related_navigation_helper.rb,
lib/govuk_publishing_components/presenters/subscription_links_helper.rb,
app/controllers/govuk_publishing_components/component_guide_controller.rb,
app/models/govuk_publishing_components/component_wrapper_helper_options.rb,
lib/govuk_publishing_components/presenters/curated_taxonomy_sidebar_links.rb,
lib/govuk_publishing_components/presenters/machine_readable/person_schema.rb,
lib/govuk_publishing_components/presenters/machine_readable/article_schema.rb,
lib/govuk_publishing_components/presenters/machine_readable/dataset_schema.rb,
lib/govuk_publishing_components/presenters/machine_readable/faq_page_schema.rb,
lib/govuk_publishing_components/presenters/machine_readable/has_part_schema.rb,
lib/govuk_publishing_components/presenters/page_with_step_by_step_navigation.rb,
lib/govuk_publishing_components/presenters/machine_readable/is_part_of_schema.rb,
lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_taxons.rb,
lib/govuk_publishing_components/presenters/machine_readable/news_article_schema.rb,
lib/govuk_publishing_components/presenters/machine_readable/organisation_schema.rb,
lib/govuk_publishing_components/presenters/machine_readable/creative_work_schema.rb,
lib/govuk_publishing_components/presenters/content_breadcrumbs_based_on_ancestors.rb,
lib/govuk_publishing_components/presenters/single_page_notification_button_helper.rb,
lib/govuk_publishing_components/presenters/machine_readable/html_publication_schema.rb,
lib/govuk_publishing_components/presenters/machine_readable/government_service_schema.rb,
lib/govuk_publishing_components/presenters/machine_readable/search_results_page_schema.rb,
lib/govuk_publishing_components/presenters/machine_readable/potential_search_action_schema.rb
Defined Under Namespace
Modules: AppHelpers, ApplicationHelper, ComponentWrapperHelperOptions, Config, Minitest, Presenters, SharedAccessibilityCriteria
Classes: ApplicationController, AuditApplications, AuditComparer, AuditComponents, AuditController, ComponentDoc, ComponentDocs, ComponentExample, ComponentGenerator, ComponentGuideController, Engine
Constant Summary
collapse
- VERSION =
"45.6.1".freeze
Class Method Summary
collapse
Class Method Details
2
3
4
|
# File 'lib/govuk_publishing_components/config.rb', line 2
def self.configure
yield(Config)
end
|
.render(component, options = {}) ⇒ Object
64
65
66
67
68
69
|
# File 'lib/govuk_publishing_components.rb', line 64
def self.render(component, options = {})
I18n.with_locale(options.fetch(:locale, "en")) do
renderer = ActionController::Base.renderer
renderer.render(partial: component, locals: options)
end
end
|