1:- module(st_funs, [
2 encode_path/2, 3 encode_query_value/2, 4 encode_fragment/2 5]).
13:- use_module(library(uri)). 14:- use_module(st_expr). 15
17
18:- st_set_function(encode_path, 1, encode_path).
25encode_path(Path, Encoded):-
26 uri_encoded(path, Path, Encoded).
27
29
30:- st_set_function(encode_query_value, 1, encode_query_value).
37encode_query_value(Value, Encoded):-
38 uri_encoded(query_value, Value, Encoded).
39
41
42:- st_set_function(encode_fragment, 1, encode_fragment).
49encode_fragment(Fragment, Encoded):-
50 uri_encoded(fragment, Fragment, Encoded)
Predefined functions
Defines various helper functions to work with templates, HTML and otherwise. */