On Wed, 2012-03-14 at 17:59 +0100, Harald Oehlmann wrote:
> I would try to stay as compatible to tcllib as possible:
>
> html::html_entities
>
> but this is not a really nice name.
I would mark the difference between tcllib's implementation and Rivet's
adopted code. What if we get the code into a 'entitities' package and
let the actual command be placed within the ::rivet namespace?
e.g.
package require entities
set xformed_text [::rivet::entities $text]
or
::rivet::html_entities
the name ::html::html_entities is a redundant, not very well picked.
>
> I personally have used:
>
> ee -> encode entity
>
> mce -> use msgcat::mc and html_entities
>
I'm not an msgcat expert. I presume this call would be a wrapper for
msgcat and ::rivet::entitited being called in sequence.
> proc ::wwwbase::mce args {
> return [wwwbaseEncodeEntity [uplevel 1 [concat ::msgcat::mc $args]]]
> }
>
> Please sleep a night over such a decision. You might have good ideas
> tomorrow morning.
>
> Thank you,
> -Harald
>
-- Massimo
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]