13#ifndef PHAROS_NATIVE_DYNAMIC_TEMPLATE_H
14#define PHAROS_NATIVE_DYNAMIC_TEMPLATE_H
123 const char *app_root,
124 const char *base_path,
125 const char *layout_id,
128 const char *current_lang,
129 const char *current_request_target,
131 int managed_business_count
169 const char *state_path,
171 const char *app_root,
172 const char *payment_preference_options_html
190 const char *state_path,
191 const char *business_slug,
193 const char *app_root,
194 const char *error_message
209 const char *state_path,
210 const char *business_slug
231 const char *state_path,
245 const char *state_path,
260 const char *state_path,
275 const char *state_path,
276 const char *business_slug,
char * business_dashboard_render_page_params_json_dup_runtime(const char *state_path, long user_id, const char *app_root)
Builds rendered business dashboard page params JSON from runtime state.
char * profile_render_page_params_json_dup_runtime(const char *state_path, long user_id, const char *app_root, const char *payment_preference_options_html)
Builds rendered profile page params JSON from runtime state.
char * render_file_template_dup_runtime(const char *template_file, yyjson_val *params_root)
Reads a template file and renders it with JSON parameter substitution.
char * error_alert_html_dup_runtime(const char *message)
Renders an error alert.
char * join_base_relative_path_dup_runtime(const char *base_path, const char *relative_path)
Joins a base path and a relative path into one string.
char * business_detail_admin_render_page_params_json_dup_runtime(const char *state_path, const char *business_slug, const char *app_root)
Builds rendered business admin page params JSON from runtime state.
char * appointments_render_page_params_json_dup_runtime(const char *state_path, long user_id, const char *app_root)
Builds rendered appointments page params JSON from runtime state.
char * render_path_template_text_dup_runtime(const char *template_text, yyjson_val *params_root)
Renders one path-oriented template text string with JSON substitution.
char * render_template_text_dup_runtime(const char *template_text, yyjson_val *params_root)
Renders one HTML template text string with JSON parameter substitution.
char * explore_render_page_params_json_dup_runtime(const char *state_path, const char *app_root)
Builds rendered appointments page params JSON from runtime state.
char * html_escaped_dup_runtime(const char *text)
Escapes one plain-text string for safe HTML insertion.
char * declared_page_relative_path_dup_runtime(const char *app_root, const char *page_id)
Resolves one UCAL declared page id to its app-relative page-spec path.
char * business_edit_page_params_json_dup_runtime(const char *state_path, const char *business_slug)
Builds rendered business-edit page params JSON from runtime state.
char * service_book_form_page_params_json_dup_runtime(const char *state_path, const char *business_slug, long service_id, const char *app_root, const char *error_message)
Builds rendered service-book-form page params JSON from runtime state.
char * hidden_next_input_html_dup_runtime(const char *next_path)
Renders a hidden next-path <input> HTML, or an empty string.
char * apply_base_path_html_dup_runtime(const char *html, const char *base_path)
Rewrites relative URLs in HTML to use a base path.
char * render_page_html_dup_runtime(const char *app_root, const char *base_path, const char *layout_id, const char *title, const char *body, const char *current_lang, const char *current_request_target, int has_user, int managed_business_count)
Builds the nav context and renders a full layout page.
yyjson_val * load_root_from_text_runtime(const char *text, yyjson_doc **doc_out)
Parses JSON text into a yyjson_val root.