rust 1,859,968 · typescript 235,218 · javascript 132,952 · python 20,426 · 6,406 files · digest c536f05fc420 · built in 1.4 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:1178 | fn | 3 | 1 | 37 | 2 | 13.1 | |
| list_templatessrc/section_template_registry.rs:3357 | fn | 13 | 1 | 12 | 9 | 6.8 | |
| with_anchor_idsrc/section_template_registry.rs:1202 | fn | 9 | 4 | 1 | 1 | 6.1 | |
| section_to_view_node_innersrc/section_template_registry.rs:1215 | fn | 7 | 2 | 1 | 3 | 6.1 | |
| is_safe_section_image_urlsrc/section_template_registry.rs:2565 | fn | 7 | 5 | 8 | 0 | 5.1 | |
| resolve_templatesrc/section_template_registry.rs:3372 | fn | 3 | 1 | 11 | 1 | 3.4 | |
| is_safe_section_linksrc/section_template_registry.rs:2549 | fn | 9 | 7 | 6 | 0 | 3.2 | |
| SiteTemplate::render_page_documentsrc/section_template_registry.rs:1089 | method | 82 | 9 | 3 | 15 | 2.6 | |
| SiteTemplate::build_page_withsrc/section_template_registry.rs:963 | method | 84 | 14 | 2 | 13 | 2.3 | |
| recipe_section_to_view_nodesrc/section_template_registry.rs:1223 | fn | 48 | 14 | 2 | 15 | 2.3 | |
| SiteTemplate::render_documentsrc/section_template_registry.rs:1077 | method | 3 | 1 | 8 | 1 | 2.3 | |
| default_templatesrc/section_template_registry.rs:3326 | fn | 25 | 1 | 6 | 0 | 2.1 | |
| SiteTemplate::build_pagesrc/section_template_registry.rs:950 | method | 3 | 1 | 11 | 1 | 2 | |
| SiteTemplate::flatten_site_mainsrc/section_template_registry.rs:1052 | method | 12 | 4 | 11 | 1 | 2 | |
| stock_labelsrc/section_template_registry.rs:1875 | fn | 9 | 4 | 2 | 0 | 1.9 | |
| product_section_snapshotsrc/section_template_registry.rs:1298 | fn | 33 | 3 | 8 | 2 | 1.9 | |
| event_tier_snapshotsrc/section_template_registry.rs:1671 | fn | 26 | 3 | 1 | 2 | 1.5 | |
| cta_button_nodesrc/section_template_registry.rs:3233 | fn | 18 | 3 | 4 | 2 | 1.4 | |
| html_ofsrc/section_template_registry.rs:4922 | fn | 4 | 1 | 2 | 2 | 1.3 | |
| minor_price_displaysrc/section_template_registry.rs:1333 | fn | 5 | 2 | 1 | 0 | 1.3 | |
| section_with_optional_titlesrc/section_template_registry.rs:2537 | fn | 7 | 2 | 5 | 0 | 1.2 | |
| market_chart_section_snapshotsrc/section_template_registry.rs:1746 | fn | 20 | 1 | 3 | 1 | 1.2 | |
| sectionsrc/section_template_registry.rs:2052 | fn | 3 | 1 | 3 | 0 | 1.1 | |
| event_section_snapshotsrc/section_template_registry.rs:1623 | fn | 35 | 1 | 2 | 1 | 1.1 | |
| enrich_product_sectionssrc/section_template_registry.rs:1279 | fn | 13 | 5 | 3 | 0 | 1.1 | |
| format_minor_unitssrc/section_template_registry.rs:1700 | fn | 3 | 1 | 1 | 0 | 1.1 | |
| is_navigational_cta_targetsrc/section_template_registry.rs:3255 | fn | 3 | 1 | 1 | 1 | 1.1 | |
| simple_section_to_view_nodesrc/section_template_registry.rs:3173 | fn | 41 | 18 | 2 | 5 | 1 | |
| trimmed_textsrc/section_template_registry.rs:1399 | fn | 3 | 1 | 2 | 0 | 1 | |
| product_sectionsrc/section_template_registry.rs:3509 | fn | 11 | 1 | 5 | 0 | 0.9 | |
| shop_catalog_grid_htmlsrc/section_template_registry.rs:1834 | fn | 38 | 2 | 2 | 1 | 0.9 | |
| event_tickets_section_to_view_nodesrc/section_template_registry.rs:2278 | fn | 152 | 20 | 3 | 10 | 0.8 | |
| product_buy_snapshotsrc/section_template_registry.rs:1445 | fn | 99 | 14 | 1 | 6 | 0.8 | |
| raw_html_ofsrc/section_template_registry.rs:3496 | fn | 12 | 4 | 4 | 1 | 0.8 | |
| nav_to_view_nodesrc/section_template_registry.rs:3259 | fn | 24 | 6 | 2 | 1 | 0.8 | |
| footer_to_view_nodesrc/section_template_registry.rs:3284 | fn | 35 | 6 | 2 | 1 | 0.8 | |
| product_section_snapshot_from_item_getsrc/section_template_registry.rs:1343 | fn | 8 | 1 | 4 | 2 | 0.8 | |
| enrich_shop_catalog_sectionssrc/section_template_registry.rs:1549 | fn | 18 | 5 | 2 | 0 | 0.8 | |
| enrich_market_chart_sectionssrc/section_template_registry.rs:1574 | fn | 19 | 5 | 2 | 0 | 0.8 | |
| product_section_htmlsrc/section_template_registry.rs:2617 | fn | 22 | 4 | 2 | 1 | 0.8 | |
| enrich_course_catalog_sectionssrc/section_template_registry.rs:1894 | fn | 20 | 5 | 2 | 0 | 0.7 | |
| course_card_snapshotsrc/section_template_registry.rs:1921 | fn | 45 | 5 | 2 | 1 | 0.7 | |
| product_section_to_view_nodesrc/section_template_registry.rs:2573 | fn | 41 | 2 | 2 | 3 | 0.7 | |
| event_section_snapshot_with_salessrc/section_template_registry.rs:1663 | fn | 7 | 2 | 2 | 1 | 0.7 | |
| product_buy_strip_htmlsrc/section_template_registry.rs:2675 | fn | 31 | 5 | 1 | 0 | 0.7 | |
| product_buy_form_htmlsrc/section_template_registry.rs:2772 | fn | 99 | 13 | 1 | 5 | 0.7 | |
| hero_section_to_view_nodesrc/section_template_registry.rs:2907 | fn | 36 | 7 | 1 | 5 | 0.7 | |
| content_section_to_view_nodesrc/section_template_registry.rs:2944 | fn | 19 | 4 | 1 | 2 | 0.7 | |
| cta_section_to_view_nodesrc/section_template_registry.rs:2964 | fn | 18 | 4 | 1 | 2 | 0.7 | |
| event_utc_clocksrc/section_template_registry.rs:2442 | fn | 6 | 4 | 2 | 0 | 0.7 | |
| event_excerptsrc/section_template_registry.rs:2451 | fn | 9 | 2 | 2 | 0 | 0.7 | |
| SiteTemplate::uses_framed_layoutsrc/section_template_registry.rs:1068 | method | 5 | 3 | 1 | 2 | 0.6 | |
| brace_item_getsrc/section_template_registry.rs:3522 | fn | 20 | 1 | 2 | 0 | 0.6 | |
| feature_grid_to_view_nodesrc/section_template_registry.rs:2993 | fn | 33 | 9 | 1 | 1 | 0.6 | |
| testimonials_to_view_nodesrc/section_template_registry.rs:3027 | fn | 24 | 6 | 1 | 2 | 0.6 | |
| profile_band_to_view_nodesrc/section_template_registry.rs:3052 | fn | 14 | 3 | 1 | 0 | 0.6 | |
| stat_grid_to_view_nodesrc/section_template_registry.rs:3067 | fn | 14 | 4 | 1 | 0 | 0.6 | |
| market_chart_section_to_view_nodesrc/section_template_registry.rs:1767 | fn | 41 | 2 | 1 | 3 | 0.6 | |
| shop_catalog_section_to_view_nodesrc/section_template_registry.rs:1809 | fn | 21 | 2 | 1 | 2 | 0.6 | |
| course_catalog_section_to_view_nodesrc/section_template_registry.rs:1969 | fn | 77 | 10 | 1 | 5 | 0.6 | |
| gallery_section_to_view_nodesrc/section_template_registry.rs:2112 | fn | 79 | 10 | 1 | 5 | 0.6 | |
| release_list_section_to_view_nodesrc/section_template_registry.rs:2194 | fn | 81 | 6 | 1 | 6 | 0.6 | |
| newsletter_section_to_view_nodesrc/section_template_registry.rs:2472 | fn | 58 | 5 | 1 | 3 | 0.6 | |
| product_buy_section_to_view_nodesrc/section_template_registry.rs:2651 | fn | 20 | 2 | 1 | 3 | 0.6 | |
| hero_content_section_to_view_nodesrc/section_template_registry.rs:2872 | fn | 33 | 4 | 1 | 3 | 0.6 | |
| grid_section_to_view_nodesrc/section_template_registry.rs:2983 | fn | 9 | 5 | 1 | 4 | 0.6 | |
| list_section_to_view_nodesrc/section_template_registry.rs:3082 | fn | 10 | 6 | 1 | 5 | 0.6 | |
| shop_item_kindsrc/section_template_registry.rs:1354 | fn | 19 | 7 | 1 | 0 | 0.6 | |
| is_original_editionsrc/section_template_registry.rs:1375 | fn | 7 | 1 | 1 | 0 | 0.6 | |
| is_enquiry_onlysrc/section_template_registry.rs:1385 | fn | 7 | 3 | 1 | 0 | 0.6 | |
| is_made_to_ordersrc/section_template_registry.rs:1395 | fn | 3 | 2 | 1 | 0 | 0.6 | |
| is_active_statussrc/section_template_registry.rs:1403 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| product_buy_rail_copysrc/section_template_registry.rs:2710 | fn | 26 | 6 | 1 | 0 | 0.6 | |
| product_buy_fieldsrc/section_template_registry.rs:2739 | fn | 16 | 2 | 1 | 0 | 0.6 | |
| product_buy_hiddensrc/section_template_registry.rs:2756 | fn | 4 | 1 | 1 | 0 | 0.6 | |
| short_hashsrc/section_template_registry.rs:2561 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| pricing_table_to_view_nodesrc/section_template_registry.rs:3093 | fn | 18 | 3 | 1 | 1 | 0.6 | |
| faq_to_view_nodesrc/section_template_registry.rs:3112 | fn | 10 | 3 | 1 | 0 | 0.6 | |
| logo_cloud_to_view_nodesrc/section_template_registry.rs:3123 | fn | 14 | 4 | 1 | 1 | 0.6 | |
| team_grid_to_view_nodesrc/section_template_registry.rs:3138 | fn | 19 | 4 | 1 | 0 | 0.6 | |
| timeline_to_view_nodesrc/section_template_registry.rs:3158 | fn | 14 | 3 | 1 | 0 | 0.6 | |
| event_sells_online_paid_seatssrc/section_template_registry.rs:2433 | fn | 6 | 2 | 1 | 0 | 0.6 | |
| enrich_event_sectionssrc/section_template_registry.rs:1601 | fn | 18 | 5 | 1 | 0 | 0.5 | |
| product_buy_railsrc/section_template_registry.rs:1409 | fn | 9 | 5 | 0 | 0 | 0.5 | |
| shop_pickup_labelsrc/section_template_registry.rs:1421 | fn | 13 | 4 | 0 | 1 | 0.5 | |
| format_event_datesrc/section_template_registry.rs:1707 | fn | 24 | 4 | 0 | 0 | 0.5 | |
| format_event_timesrc/section_template_registry.rs:1735 | fn | 7 | 2 | 0 | 0 | 0.5 | |
| an_unresolved_catalog_renders_its_empty_messagesrc/section_template_registry.rs:2057 | fn | 8 | 2 | 0 | 3 | 0.5 | |
| an_authored_snapshot_is_never_acceptedsrc/section_template_registry.rs:2067 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| resolved_cards_link_to_the_course_and_price_in_cre8src/section_template_registry.rs:2074 | fn | 31 | 6 | 0 | 5 | 0.5 | |
| native_controls_escape_content_and_reject_executable_sourcessrc/section_template_registry.rs:3219 | fn | 10 | 4 | 0 | 2 | 0.5 | |
| product_section_renders_placeholder_without_snapshotsrc/section_template_registry.rs:3384 | fn | 9 | 1 | 0 | 1 | 0.5 | |
| product_section_renders_live_snapshot_after_enrichmentsrc/section_template_registry.rs:3395 | fn | 41 | 1 | 0 | 3 | 0.5 | |
| enrich_skips_already_resolved_and_unknown_itemssrc/section_template_registry.rs:3438 | fn | 24 | 1 | 0 | 1 | 0.5 | |
| digital_product_shows_no_stocksrc/section_template_registry.rs:3464 | fn | 22 | 3 | 0 | 3 | 0.5 | |
| product_snapshot_filters_unsafe_image_urlssrc/section_template_registry.rs:3488 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| product_section_without_buy_renders_exactly_as_beforesrc/section_template_registry.rs:3544 | fn | 39 | 3 | 0 | 6 | 0.5 | |
| buy_section_renders_the_inline_purchase_form_with_variantssrc/section_template_registry.rs:3585 | fn | 45 | 3 | 0 | 6 | 0.5 | |
| buy_section_offers_pickup_and_asks_one_copy_of_a_digital_itemsrc/section_template_registry.rs:3632 | fn | 22 | 2 | 0 | 6 | 0.5 | |
| buy_section_renders_no_form_when_nothing_can_be_boughtsrc/section_template_registry.rs:3656 | fn | 31 | 6 | 0 | 4 | 0.5 | |
| product_anchor_becomes_the_section_idsrc/section_template_registry.rs:3689 | fn | 18 | 1 | 0 | 4 | 0.5 | |
| shop_catalog_section_renders_grid_after_enrichmentsrc/section_template_registry.rs:3709 | fn | 28 | 1 | 0 | 2 | 0.5 | |
| shop_catalog_section_renders_placeholder_without_snapshotsrc/section_template_registry.rs:3739 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| market_chart_section_enriches_and_renders_live_svgsrc/section_template_registry.rs:3748 | fn | 30 | 1 | 0 | 3 | 0.5 | |
| market_chart_snapshot_caps_window_and_formats_lastsrc/section_template_registry.rs:3780 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| market_chart_section_renders_placeholder_without_snapshotsrc/section_template_registry.rs:3790 | fn | 7 | 1 | 0 | 1 | 0.5 | |
| hero_section_round_trips_through_jsonsrc/section_template_registry.rs:3801 | fn | 43 | 1 | 0 | 0 | 0.5 | |
| content_section_round_tripssrc/section_template_registry.rs:3846 | fn | 25 | 1 | 0 | 0 | 0.5 | |
| feature_grid_round_tripssrc/section_template_registry.rs:3873 | fn | 32 | 1 | 0 | 0 | 0.5 | |
| cta_round_tripssrc/section_template_registry.rs:3907 | fn | 25 | 1 | 0 | 0 | 0.5 | |
| testimonials_round_tripssrc/section_template_registry.rs:3934 | fn | 23 | 1 | 0 | 0 | 0.5 | |
| profile_band_round_tripssrc/section_template_registry.rs:3959 | fn | 18 | 1 | 0 | 0 | 0.5 | |
| stat_grid_round_tripssrc/section_template_registry.rs:3979 | fn | 23 | 1 | 0 | 0 | 0.5 | |
| raw_content_round_tripssrc/section_template_registry.rs:4004 | fn | 10 | 1 | 0 | 0 | 0.5 | |
| custom_section_round_tripssrc/section_template_registry.rs:4016 | fn | 13 | 1 | 0 | 0 | 0.5 | |
| hero_produces_hero_tag_with_buttonssrc/section_template_registry.rs:4033 | fn | 42 | 1 | 0 | 2 | 0.5 | |
| cta_targets_split_between_navigation_and_dispatchsrc/section_template_registry.rs:4081 | fn | 14 | 3 | 0 | 2 | 0.5 | |
| content_section_produces_correct_tagsrc/section_template_registry.rs:4097 | fn | 22 | 1 | 0 | 2 | 0.5 | |
| feature_grid_produces_child_itemssrc/section_template_registry.rs:4121 | fn | 41 | 1 | 0 | 2 | 0.5 | |
| cta_produces_headline_and_buttonssrc/section_template_registry.rs:4164 | fn | 20 | 1 | 0 | 2 | 0.5 | |
| testimonials_produces_quote_childrensrc/section_template_registry.rs:4186 | fn | 28 | 1 | 0 | 2 | 0.5 | |
| profile_band_produces_item_childrensrc/section_template_registry.rs:4216 | fn | 23 | 1 | 0 | 2 | 0.5 | |
| stat_grid_produces_item_childrensrc/section_template_registry.rs:4241 | fn | 28 | 1 | 0 | 2 | 0.5 | |
| raw_content_produces_raw_html_nodesrc/section_template_registry.rs:4271 | fn | 6 | 1 | 0 | 2 | 0.5 | |
| custom_section_parses_node_from_jsonsrc/section_template_registry.rs:4279 | fn | 13 | 1 | 0 | 2 | 0.5 | |
| custom_section_falls_back_on_invalid_jsonsrc/section_template_registry.rs:4294 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| build_page_composes_sections_into_page_nodesrc/section_template_registry.rs:4303 | fn | 68 | 1 | 0 | 3 | 0.5 | |
| build_page_includes_nav_and_footer_chromesrc/section_template_registry.rs:4373 | fn | 55 | 1 | 0 | 2 | 0.5 | |
| render_document_produces_html_with_style_tokenssrc/section_template_registry.rs:4430 | fn | 43 | 1 | 0 | 1 | 0.5 | |
| a_hero_page_has_one_h1_and_a_heroless_page_keeps_its_titlesrc/section_template_registry.rs:4475 | fn | 28 | 1 | 0 | 2 | 0.5 | |
| a_lead_featured_row_is_the_page_headingsrc/section_template_registry.rs:4505 | fn | 22 | 1 | 0 | 2 | 0.5 | |
| list_templates_returns_builtinssrc/section_template_registry.rs:4531 | fn | 11 | 1 | 0 | 1 | 0.5 | |
| resolve_template_returns_none_for_unknownsrc/section_template_registry.rs:4544 | fn | 3 | 1 | 0 | 1 | 0.5 | |
| resolve_template_finds_builtin_by_idsrc/section_template_registry.rs:4549 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| resolve_template_finds_defaultsrc/section_template_registry.rs:4559 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| default_template_has_hero_sectionsrc/section_template_registry.rs:4569 | fn | 14 | 1 | 0 | 1 | 0.5 | |
| site_template_round_trips_through_jsonsrc/section_template_registry.rs:4587 | fn | 69 | 1 | 0 | 0 | 0.5 | |
| nav_to_view_node_produces_correct_structuresrc/section_template_registry.rs:4660 | fn | 30 | 1 | 0 | 3 | 0.5 | |
| footer_to_view_node_produces_correct_structuresrc/section_template_registry.rs:4692 | fn | 22 | 1 | 0 | 3 | 0.5 | |
| list_section_family_produces_runtime_nodessrc/section_template_registry.rs:4716 | fn | 67 | 2 | 0 | 1 | 0.5 | |
| simple_section_unreachable_guard_panics_for_list_sectionssrc/section_template_registry.rs:4786 | fn | 9 | 1 | 0 | 1 | 0.5 | |
| no_builtin_template_ships_a_dead_in_page_anchorsrc/section_template_registry.rs:4805 | fn | 43 | 8 | 0 | 2 | 0.5 | |
| sections_carry_an_anchor_id_derived_from_their_variantsrc/section_template_registry.rs:4851 | fn | 13 | 1 | 0 | 2 | 0.5 | |
| event_cards_show_their_picture_an_excerpt_and_a_labelled_clocksrc/section_template_registry.rs:4866 | fn | 31 | 3 | 0 | 5 | 0.5 | |
| a_date_outside_its_sales_window_offers_no_way_to_booksrc/section_template_registry.rs:4899 | fn | 16 | 3 | 0 | 3 | 0.5 | |
| a_signup_reads_as_a_sentence_and_never_as_the_routes_jsonsrc/section_template_registry.rs:4928 | fn | 8 | 1 | 0 | 1 | 0.5 | |
| ask_name_adds_a_first_name_field_and_success_message_replaces_the_thankssrc/section_template_registry.rs:4938 | fn | 12 | 1 | 0 | 1 | 0.5 |
Source not readable from this process.