On Wed, Jul 3, 2013 at 11:09 AM, Jason McKellar <ja...@deadtreepages.com> wrote: > On Tue, Jul 2, 2013 at 12:46 PM, Mike Orr <sluggos...@gmail.com> wrote: >> Maybe I should just ask the list: is lxml suitable as a tag generator >> for webhelpers2.html? Or is it too big for a general-purpose library, >> not everyone of which will be generating HTML. > > I may be in the minority about dependencies, but I really don't mind have > extra dependencies if they are the right tool. It doesn't hurt that I use > lxml in most of my Pyramid applications anyway.
The thing is, WebHelpers has always tried to avoid dependencies so that it can be used in the widest variety of use cases. It now depends on MarkupSafe because that's a small best-of-breed security enhancement. And I found some hidden dependencies on Pylons and Routes that I've now eradicated. Lxml to me seems large, whether that's accurate or not. And WebHelpers' need is just for a small thing, and it would use only 5% of lxml's features. I may make an HTML class with a basic Python back end, and a subclass that uses lxml if available. Did I really put this on pylons-devel? I meant to put it on pylons-discuss, but I just typed "pylons" and let it autocomplete, forgetting that pylons-devel existed. -- Mike Orr <sluggos...@gmail.com> -- You received this message because you are subscribed to the Google Groups "pylons-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to pylons-devel+unsubscr...@googlegroups.com. To post to this group, send email to pylons-devel@googlegroups.com. Visit this group at http://groups.google.com/group/pylons-devel. For more options, visit https://groups.google.com/groups/opt_out.