comparison src/settings.sig @ 1752:675ce534e3ec

New optional suffice for 'rewrite' in .urp files: [-]
author Adam Chlipala <adam@chlipala.net>
date Sun, 06 May 2012 15:27:30 -0400
parents c414850f206f
children 59b07fdae1ff
comparison
equal deleted inserted replaced
1751:acadf9d1214a 1752:675ce534e3ec
95 datatype pattern_kind = Exact | Prefix 95 datatype pattern_kind = Exact | Prefix
96 datatype action = Allow | Deny 96 datatype action = Allow | Deny
97 type rule = { action : action, kind : pattern_kind, pattern : string } 97 type rule = { action : action, kind : pattern_kind, pattern : string }
98 98
99 datatype path_kind = Any | Url | Table | Sequence | View | Relation | Cookie | Style 99 datatype path_kind = Any | Url | Table | Sequence | View | Relation | Cookie | Style
100 type rewrite = { pkind : path_kind, kind : pattern_kind, from : string, to : string } 100 type rewrite = { pkind : path_kind, kind : pattern_kind, from : string, to : string, hyphenate : bool }
101 101
102 (* Rules for rewriting URLs from canonical forms *) 102 (* Rules for rewriting URLs from canonical forms *)
103 val setRewriteRules : rewrite list -> unit 103 val setRewriteRules : rewrite list -> unit
104 val rewrite : path_kind -> string -> string 104 val rewrite : path_kind -> string -> string
105 105