Skip to content

Comment on Simplify templating with node.js, jsdom 0.2.0 and weld

Comments

The fact that it's all std-based, and back/front-end rendered is beautiful, but what seriously bothers me is how much weld.js is tied to jQuery.

The README states "Use with whatever library you want, jQuery for example". Let's analyze that for a second.

Weld.js uses the following jQuery methods: - Sizzle selector ($) - first() - is() - val() - attr() - text() - map() - extend() - clone() - data() - remove()

These methods are used throughout the 249 lines of code.

This makes weld.js completely dependent on jQuery. Thus, you can't just use whatever library you want. And that would be allright, if the README would say that; but it didn't, and so it isn't.

meh, we might remove jQuery next version.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.