rust 1,961,941 · typescript 233,850 · javascript 141,145 · python 22,871 · 6,801 files · digest 6d882eacc8db · built in 12.5 s · crystals off
crates/cre8-app-view-lib/src/section_template_registry.rs
Items
enum SectionSlot struct CtaButton struct FeatureGridItem struct TestimonialQuoteData struct ProfileBandItem struct StatGridItemData struct PricingTierData struct FaqItemData struct GalleryItem struct ReleaseItem struct ReleaseLink struct LogoCloudItemData struct TeamMemberData struct TimelineEventData struct NavConfig struct NavLinkConfig struct FooterConfig struct FooterColumnConfig struct SiteTemplate impl SiteTemplate const MONTHS const WEEKDAYS const NEWSLETTER_SUCCESS_MESSAGE const NEWSLETTER_FAILURE_MESSAGE const PRODUCT_BUY_MARKER const PRODUCT_BUY_ENDPOINT
Functions
By call-graph weight (PageRank; 1.0 is the average function). 147 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| section_to_view_nodesrc/section_template_registry.rs:1196 | fn | 3 | 1 | 39 | 2 | 13.2 | |
| list_templatessrc/section_template_registry.rs:3381 | fn | 13 | 1 | 12 | 9 | 6.7 | |
| with_anchor_idsrc/section_template_registry.rs:1220 | fn | 9 | 4 | 1 | 1 | 6.1 | |
| section_to_view_node_innersrc/section_template_registry.rs:1233 | fn | 7 | 2 | 1 | 3 | 6.1 | |
| is_safe_section_image_urlsrc/section_template_registry.rs:2589 | fn | 7 | 5 | 8 | 0 | 5.1 | |
| resolve_templatesrc/section_template_registry.rs:3396 | fn | 3 | 1 | 11 | 1 | 3.4 | |
| is_safe_section_linksrc/section_template_registry.rs:2573 | fn | 9 | 7 | 6 | 0 | 3.2 | |
| SiteTemplate::render_page_documentsrc/section_template_registry.rs:1107 | method | 82 | 9 | 3 | 15 | 2.5 | |
| SiteTemplate::build_page_withsrc/section_template_registry.rs:981 | method | 84 | 14 | 2 | 13 | 2.3 | |
| recipe_section_to_view_nodesrc/section_template_registry.rs:1241 | fn | 54 | 15 | 2 | 16 | 2.3 | |
| SiteTemplate::render_documentsrc/section_template_registry.rs:1095 | method | 3 | 1 | 8 | 1 | 2.2 | |
| default_templatesrc/section_template_registry.rs:3350 | fn | 25 | 1 | 6 | 0 | 2.1 | |
| SiteTemplate::build_pagesrc/section_template_registry.rs:968 | method | 3 | 1 | 11 | 1 | 2 | |
| SiteTemplate::flatten_site_mainsrc/section_template_registry.rs:1070 | method | 12 | 4 | 11 | 1 | 2 | |
| stock_labelsrc/section_template_registry.rs:1899 | fn | 9 | 4 | 2 | 0 | 1.9 | |
| product_section_snapshotsrc/section_template_registry.rs:1322 | fn | 33 | 3 | 8 | 2 | 1.9 | |
| event_tier_snapshotsrc/section_template_registry.rs:1695 | fn | 26 | 3 | 1 | 2 | 1.5 | |
| cta_button_nodesrc/section_template_registry.rs:3257 | fn | 18 | 3 | 4 | 2 | 1.4 | |
| html_ofsrc/section_template_registry.rs:4946 | fn | 4 | 1 | 2 | 2 | 1.3 | |
| minor_price_displaysrc/section_template_registry.rs:1357 | fn | 5 | 2 | 1 | 0 | 1.3 | |
| section_with_optional_titlesrc/section_template_registry.rs:2561 | fn | 7 | 2 | 5 | 0 | 1.2 | |
| market_chart_section_snapshotsrc/section_template_registry.rs:1770 | fn | 20 | 1 | 3 | 1 | 1.2 | |
| sectionsrc/section_template_registry.rs:2076 | fn | 3 | 1 | 3 | 0 | 1.1 | |
| event_section_snapshotsrc/section_template_registry.rs:1647 | fn | 35 | 1 | 2 | 1 | 1.1 | |
| enrich_product_sectionssrc/section_template_registry.rs:1303 | fn | 13 | 5 | 3 | 0 | 1.1 | |
| format_minor_unitssrc/section_template_registry.rs:1724 | fn | 3 | 1 | 1 | 0 | 1.1 | |
| is_navigational_cta_targetsrc/section_template_registry.rs:3279 | fn | 3 | 1 | 1 | 1 | 1.1 | |
| simple_section_to_view_nodesrc/section_template_registry.rs:3197 | fn | 41 | 18 | 2 | 5 | 1 | |
| trimmed_textsrc/section_template_registry.rs:1423 | fn | 3 | 1 | 2 | 0 | 1 | |
| product_sectionsrc/section_template_registry.rs:3533 | fn | 11 | 1 | 5 | 0 | 0.9 | |
| shop_catalog_grid_htmlsrc/section_template_registry.rs:1858 | fn | 38 | 2 | 2 | 1 | 0.9 | |
| event_tickets_section_to_view_nodesrc/section_template_registry.rs:2302 | fn | 152 | 20 | 3 | 10 | 0.8 | |
| product_buy_snapshotsrc/section_template_registry.rs:1469 | fn | 99 | 14 | 1 | 6 | 0.8 | |
| raw_html_ofsrc/section_template_registry.rs:3520 | fn | 12 | 4 | 4 | 1 | 0.8 | |
| nav_to_view_nodesrc/section_template_registry.rs:3283 | fn | 24 | 6 | 2 | 1 | 0.8 | |
| footer_to_view_nodesrc/section_template_registry.rs:3308 | fn | 35 | 6 | 2 | 1 | 0.8 | |
| product_section_snapshot_from_item_getsrc/section_template_registry.rs:1367 | fn | 8 | 1 | 4 | 2 | 0.8 | |
| enrich_shop_catalog_sectionssrc/section_template_registry.rs:1573 | fn | 18 | 5 | 2 | 0 | 0.8 | |
| enrich_market_chart_sectionssrc/section_template_registry.rs:1598 | fn | 19 | 5 | 2 | 0 | 0.8 | |
| product_section_htmlsrc/section_template_registry.rs:2641 | fn | 22 | 4 | 2 | 1 | 0.8 | |
| enrich_course_catalog_sectionssrc/section_template_registry.rs:1918 | fn | 20 | 5 | 2 | 0 | 0.7 | |
| course_card_snapshotsrc/section_template_registry.rs:1945 | fn | 45 | 5 | 2 | 1 | 0.7 | |
| product_section_to_view_nodesrc/section_template_registry.rs:2597 | fn | 41 | 2 | 2 | 3 | 0.7 | |
| event_section_snapshot_with_salessrc/section_template_registry.rs:1687 | fn | 7 | 2 | 2 | 1 | 0.7 | |
| product_buy_strip_htmlsrc/section_template_registry.rs:2699 | fn | 31 | 5 | 1 | 0 | 0.7 | |
| product_buy_form_htmlsrc/section_template_registry.rs:2796 | fn | 99 | 13 | 1 | 5 | 0.7 | |
| hero_section_to_view_nodesrc/section_template_registry.rs:2931 | fn | 36 | 7 | 1 | 5 | 0.7 | |
| content_section_to_view_nodesrc/section_template_registry.rs:2968 | fn | 19 | 4 | 1 | 2 | 0.7 | |
| cta_section_to_view_nodesrc/section_template_registry.rs:2988 | fn | 18 | 4 | 1 | 2 | 0.7 | |
| event_utc_clocksrc/section_template_registry.rs:2466 | fn | 6 | 4 | 2 | 0 | 0.6 | |
| event_excerptsrc/section_template_registry.rs:2475 | fn | 9 | 2 | 2 | 0 | 0.6 | |
| SiteTemplate::uses_framed_layoutsrc/section_template_registry.rs:1086 | method | 5 | 3 | 1 | 2 | 0.6 | |
| brace_item_getsrc/section_template_registry.rs:3546 | fn | 20 | 1 | 2 | 0 | 0.6 | |
| feature_grid_to_view_nodesrc/section_template_registry.rs:3017 | fn | 33 | 9 | 1 | 1 | 0.6 | |
| testimonials_to_view_nodesrc/section_template_registry.rs:3051 | fn | 24 | 6 | 1 | 2 | 0.6 | |
| profile_band_to_view_nodesrc/section_template_registry.rs:3076 | fn | 14 | 3 | 1 | 0 | 0.6 | |
| stat_grid_to_view_nodesrc/section_template_registry.rs:3091 | fn | 14 | 4 | 1 | 0 | 0.6 | |
| market_chart_section_to_view_nodesrc/section_template_registry.rs:1791 | fn | 41 | 2 | 1 | 3 | 0.6 | |
| shop_catalog_section_to_view_nodesrc/section_template_registry.rs:1833 | fn | 21 | 2 | 1 | 2 | 0.6 | |
| course_catalog_section_to_view_nodesrc/section_template_registry.rs:1993 | fn | 77 | 10 | 1 | 5 | 0.6 | |
| gallery_section_to_view_nodesrc/section_template_registry.rs:2136 | fn | 79 | 10 | 1 | 5 | 0.6 | |
| release_list_section_to_view_nodesrc/section_template_registry.rs:2218 | fn | 81 | 6 | 1 | 6 | 0.6 | |
| newsletter_section_to_view_nodesrc/section_template_registry.rs:2496 | fn | 58 | 5 | 1 | 3 | 0.6 | |
| product_buy_section_to_view_nodesrc/section_template_registry.rs:2675 | fn | 20 | 2 | 1 | 3 | 0.6 | |
| hero_content_section_to_view_nodesrc/section_template_registry.rs:2896 | fn | 33 | 4 | 1 | 3 | 0.6 | |
| grid_section_to_view_nodesrc/section_template_registry.rs:3007 | fn | 9 | 5 | 1 | 4 | 0.6 | |
| list_section_to_view_nodesrc/section_template_registry.rs:3106 | fn | 10 | 6 | 1 | 5 | 0.6 | |
| shop_item_kindsrc/section_template_registry.rs:1378 | fn | 19 | 7 | 1 | 0 | 0.6 | |
| is_original_editionsrc/section_template_registry.rs:1399 | fn | 7 | 1 | 1 | 0 | 0.6 | |
| is_enquiry_onlysrc/section_template_registry.rs:1409 | fn | 7 | 3 | 1 | 0 | 0.6 | |
| is_made_to_ordersrc/section_template_registry.rs:1419 | fn | 3 | 2 | 1 | 0 | 0.6 | |
| is_active_statussrc/section_template_registry.rs:1427 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| product_buy_rail_copysrc/section_template_registry.rs:2734 | fn | 26 | 6 | 1 | 0 | 0.6 | |
| product_buy_fieldsrc/section_template_registry.rs:2763 | fn | 16 | 2 | 1 | 0 | 0.6 | |
| product_buy_hiddensrc/section_template_registry.rs:2780 | fn | 4 | 1 | 1 | 0 | 0.6 | |
| short_hashsrc/section_template_registry.rs:2585 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| pricing_table_to_view_nodesrc/section_template_registry.rs:3117 | fn | 18 | 3 | 1 | 1 | 0.6 | |
| faq_to_view_nodesrc/section_template_registry.rs:3136 | fn | 10 | 3 | 1 | 0 | 0.6 | |
| logo_cloud_to_view_nodesrc/section_template_registry.rs:3147 | fn | 14 | 4 | 1 | 1 | 0.6 | |
| team_grid_to_view_nodesrc/section_template_registry.rs:3162 | fn | 19 | 4 | 1 | 0 | 0.6 | |
| timeline_to_view_nodesrc/section_template_registry.rs:3182 | fn | 14 | 3 | 1 | 0 | 0.6 | |
| event_sells_online_paid_seatssrc/section_template_registry.rs:2457 | fn | 6 | 2 | 1 | 0 | 0.6 | |
| enrich_event_sectionssrc/section_template_registry.rs:1625 | fn | 18 | 5 | 1 | 0 | 0.5 | |
| product_buy_railsrc/section_template_registry.rs:1433 | fn | 9 | 5 | 0 | 0 | 0.5 | |
| shop_pickup_labelsrc/section_template_registry.rs:1445 | fn | 13 | 4 | 0 | 1 | 0.5 | |
| format_event_datesrc/section_template_registry.rs:1731 | fn | 24 | 4 | 0 | 0 | 0.5 | |
| format_event_timesrc/section_template_registry.rs:1759 | fn | 7 | 2 | 0 | 0 | 0.5 | |
| an_unresolved_catalog_renders_its_empty_messagesrc/section_template_registry.rs:2081 | fn | 8 | 2 | 0 | 3 | 0.5 | |
| an_authored_snapshot_is_never_acceptedsrc/section_template_registry.rs:2091 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| resolved_cards_link_to_the_course_and_price_in_cre8src/section_template_registry.rs:2098 | fn | 31 | 6 | 0 | 5 | 0.5 | |
| native_controls_escape_content_and_reject_executable_sourcessrc/section_template_registry.rs:3243 | fn | 10 | 4 | 0 | 2 | 0.5 | |
| product_section_renders_placeholder_without_snapshotsrc/section_template_registry.rs:3408 | fn | 9 | 1 | 0 | 1 | 0.5 | |
| product_section_renders_live_snapshot_after_enrichmentsrc/section_template_registry.rs:3419 | fn | 41 | 1 | 0 | 3 | 0.5 | |
| enrich_skips_already_resolved_and_unknown_itemssrc/section_template_registry.rs:3462 | fn | 24 | 1 | 0 | 1 | 0.5 | |
| digital_product_shows_no_stocksrc/section_template_registry.rs:3488 | fn | 22 | 3 | 0 | 3 | 0.5 | |
| product_snapshot_filters_unsafe_image_urlssrc/section_template_registry.rs:3512 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| product_section_without_buy_renders_exactly_as_beforesrc/section_template_registry.rs:3568 | fn | 39 | 3 | 0 | 6 | 0.5 | |
| buy_section_renders_the_inline_purchase_form_with_variantssrc/section_template_registry.rs:3609 | fn | 45 | 3 | 0 | 6 | 0.5 | |
| buy_section_offers_pickup_and_asks_one_copy_of_a_digital_itemsrc/section_template_registry.rs:3656 | fn | 22 | 2 | 0 | 6 | 0.5 | |
| buy_section_renders_no_form_when_nothing_can_be_boughtsrc/section_template_registry.rs:3680 | fn | 31 | 6 | 0 | 4 | 0.5 | |
| product_anchor_becomes_the_section_idsrc/section_template_registry.rs:3713 | fn | 18 | 1 | 0 | 4 | 0.5 | |
| shop_catalog_section_renders_grid_after_enrichmentsrc/section_template_registry.rs:3733 | fn | 28 | 1 | 0 | 2 | 0.5 | |
| shop_catalog_section_renders_placeholder_without_snapshotsrc/section_template_registry.rs:3763 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| market_chart_section_enriches_and_renders_live_svgsrc/section_template_registry.rs:3772 | fn | 30 | 1 | 0 | 3 | 0.5 | |
| market_chart_snapshot_caps_window_and_formats_lastsrc/section_template_registry.rs:3804 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| market_chart_section_renders_placeholder_without_snapshotsrc/section_template_registry.rs:3814 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| hero_section_round_trips_through_jsonsrc/section_template_registry.rs:3825 | fn | 43 | 1 | 0 | 0 | 0.5 | |
| content_section_round_tripssrc/section_template_registry.rs:3870 | fn | 25 | 1 | 0 | 0 | 0.5 | |
| feature_grid_round_tripssrc/section_template_registry.rs:3897 | fn | 32 | 1 | 0 | 0 | 0.5 | |
| cta_round_tripssrc/section_template_registry.rs:3931 | fn | 25 | 1 | 0 | 0 | 0.5 | |
| testimonials_round_tripssrc/section_template_registry.rs:3958 | fn | 23 | 1 | 0 | 0 | 0.5 | |
| profile_band_round_tripssrc/section_template_registry.rs:3983 | fn | 18 | 1 | 0 | 0 | 0.5 | |
| stat_grid_round_tripssrc/section_template_registry.rs:4003 | fn | 23 | 1 | 0 | 0 | 0.5 | |
| raw_content_round_tripssrc/section_template_registry.rs:4028 | fn | 10 | 1 | 0 | 0 | 0.5 | |
| custom_section_round_tripssrc/section_template_registry.rs:4040 | fn | 13 | 1 | 0 | 0 | 0.5 | |
| hero_produces_hero_tag_with_buttonssrc/section_template_registry.rs:4057 | fn | 42 | 1 | 0 | 2 | 0.5 | |
| cta_targets_split_between_navigation_and_dispatchsrc/section_template_registry.rs:4105 | fn | 14 | 3 | 0 | 2 | 0.5 | |
| content_section_produces_correct_tagsrc/section_template_registry.rs:4121 | fn | 22 | 1 | 0 | 2 | 0.5 | |
| feature_grid_produces_child_itemssrc/section_template_registry.rs:4145 | fn | 41 | 1 | 0 | 2 | 0.5 | |
| cta_produces_headline_and_buttonssrc/section_template_registry.rs:4188 | fn | 20 | 1 | 0 | 2 | 0.5 | |
| testimonials_produces_quote_childrensrc/section_template_registry.rs:4210 | fn | 28 | 1 | 0 | 2 | 0.5 | |
| profile_band_produces_item_childrensrc/section_template_registry.rs:4240 | fn | 23 | 1 | 0 | 2 | 0.5 | |
| stat_grid_produces_item_childrensrc/section_template_registry.rs:4265 | fn | 28 | 1 | 0 | 2 | 0.5 | |
| raw_content_produces_raw_html_nodesrc/section_template_registry.rs:4295 | fn | 6 | 1 | 0 | 2 | 0.5 | |
| custom_section_parses_node_from_jsonsrc/section_template_registry.rs:4303 | fn | 13 | 1 | 0 | 2 | 0.5 | |
| custom_section_falls_back_on_invalid_jsonsrc/section_template_registry.rs:4318 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| build_page_composes_sections_into_page_nodesrc/section_template_registry.rs:4327 | fn | 68 | 1 | 0 | 3 | 0.5 | |
| build_page_includes_nav_and_footer_chromesrc/section_template_registry.rs:4397 | fn | 55 | 1 | 0 | 2 | 0.5 | |
| render_document_produces_html_with_style_tokenssrc/section_template_registry.rs:4454 | fn | 43 | 1 | 0 | 1 | 0.5 | |
| a_hero_page_has_one_h1_and_a_heroless_page_keeps_its_titlesrc/section_template_registry.rs:4499 | fn | 28 | 1 | 0 | 2 | 0.5 | |
| a_lead_featured_row_is_the_page_headingsrc/section_template_registry.rs:4529 | fn | 22 | 1 | 0 | 2 | 0.5 | |
| list_templates_returns_builtinssrc/section_template_registry.rs:4555 | fn | 11 | 1 | 0 | 1 | 0.5 | |
| resolve_template_returns_none_for_unknownsrc/section_template_registry.rs:4568 | fn | 3 | 1 | 0 | 1 | 0.5 | |
| resolve_template_finds_builtin_by_idsrc/section_template_registry.rs:4573 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| resolve_template_finds_defaultsrc/section_template_registry.rs:4583 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| default_template_has_hero_sectionsrc/section_template_registry.rs:4593 | fn | 14 | 1 | 0 | 1 | 0.5 | |
| site_template_round_trips_through_jsonsrc/section_template_registry.rs:4611 | fn | 69 | 1 | 0 | 0 | 0.5 | |
| nav_to_view_node_produces_correct_structuresrc/section_template_registry.rs:4684 | fn | 30 | 1 | 0 | 3 | 0.5 | |
| footer_to_view_node_produces_correct_structuresrc/section_template_registry.rs:4716 | fn | 22 | 1 | 0 | 3 | 0.5 | |
| list_section_family_produces_runtime_nodessrc/section_template_registry.rs:4740 | fn | 67 | 2 | 0 | 1 | 0.5 | |
| simple_section_unreachable_guard_panics_for_list_sectionssrc/section_template_registry.rs:4810 | fn | 9 | 1 | 0 | 1 | 0.5 | |
| no_builtin_template_ships_a_dead_in_page_anchorsrc/section_template_registry.rs:4829 | fn | 43 | 8 | 0 | 2 | 0.5 | |
| sections_carry_an_anchor_id_derived_from_their_variantsrc/section_template_registry.rs:4875 | fn | 13 | 1 | 0 | 2 | 0.5 | |
| event_cards_show_their_picture_an_excerpt_and_a_labelled_clocksrc/section_template_registry.rs:4890 | fn | 31 | 3 | 0 | 5 | 0.5 | |
| a_date_outside_its_sales_window_offers_no_way_to_booksrc/section_template_registry.rs:4923 | fn | 16 | 3 | 0 | 3 | 0.5 | |
| a_signup_reads_as_a_sentence_and_never_as_the_routes_jsonsrc/section_template_registry.rs:4952 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| ask_name_adds_a_first_name_field_and_success_message_replaces_the_thankssrc/section_template_registry.rs:4962 | fn | 12 | 1 | 0 | 1 | 0.5 |
Source not readable from this process.