1pub use rumtk_core::strings::{RUMString, RUMStringConversions};
22
23pub mod app;
24pub mod conf;
25pub mod defaults;
26pub mod form_data;
27pub mod jobs;
28pub mod matcher;
29pub mod packaging;
30pub mod render;
31pub mod response;
32pub mod testdata;
33pub mod types;
34pub mod conversions;
35pub mod client;
36pub mod sanitize_html;
37pub mod misc;
38
39pub use defaults::*;
40pub use render::*;
41pub use types::*;
42pub use client::*;
43pub use sanitize_html::*;
44pub use misc::*;
45
46#[macro_export]
47macro_rules! rumtk_web_get_text_item {
48 ( $store:expr, $item:expr, $default:expr) => {{
49 match $store.get($item) {
50 Some(x) => x,
51 None => $default,
52 }
53 }};
54}
55
56#[macro_export]
57macro_rules! rumtk_web_get_param_eq {
58 ( $params:expr, $indx:expr, $comparison:expr, $default:expr ) => {{
59 match $params.get($indx) {
60 Some(x) => *x == $comparison,
61 None => $default,
62 }
63 }};
64}
65
66#[macro_export]
67macro_rules! rumtk_web_get_param {
68 ( $params:expr, $indx:expr, $default:expr ) => {{
69 match $params.get($indx) {
70 Some(x) => x.parse().unwrap_or($default),
71 None => $default,
72 }
73 }};
74}
75
76#[macro_export]
77macro_rules! rumtk_web_params_map {
78 ( $params:expr ) => {{
79 use $crate::RUMWebDataProxy;
80 RUMWebDataProxy::from(&$params)
81 }};
82}