reactive_graph_std_string_model/entity/
templating.rs

1use reactive_graph_behaviour_model_api::behaviour_ty;
2use reactive_graph_behaviour_model_api::entity_behaviour_ty;
3use reactive_graph_graph::entity_ty;
4use reactive_graph_graph::properties;
5use reactive_graph_reactive_model_api::entity_model;
6use serde_json::json;
7
8use reactive_graph_std_result_model::ResultString;
9
10use crate::NAMESPACE_STRING;
11
12properties!(TemplatingProperties, (TEMPLATE, "template", ""), (CONTEXT, "context", json!({})));
13
14entity_ty!(ENTITY_TYPE_TEMPLATING, NAMESPACE_STRING, ENTITY_TYPE_NAME_TEMPLATING, "templating");
15behaviour_ty!(BEHAVIOUR_TEMPLATING, NAMESPACE_STRING, BEHAVIOUR_NAME_TEMPLATING, "templating");
16entity_behaviour_ty!(ENTITY_BEHAVIOUR_TEMPLATING, ENTITY_TYPE_TEMPLATING, BEHAVIOUR_TEMPLATING);
17
18entity_model!(
19    Templating,
20    set context value,
21    set template string
22);
23impl ResultString for Templating {}