Added Support for YUI and fixed some tabs. #14

Merged
merged 1 commit into from May 24, 2011

Projects

None yet

2 participants

Contributor
soljin commented May 23, 2011

I've added support for YUI as a selector and Pure helper methods to the YUI Node object. I also my ide fixed a bunch of spaces and tabs (hard to read sorry).

Example of how you would use:

<div class="template">
    Hello <a></a>
</div>
<script src="http://yui.yahooapis.com/3.3.0/build/yui/yui-debug.js" type="text/javascript"></script>
<script src="pure.js" type="text/javascript"></script>
<script type="text/javascript">
    YUI().use("pure-yui",function(Y){
        Y.on("domready",function(){
            var data = {who:"Me",site:"http://www.washingtonpost.com"},
                directive = {a:"who","a@href":"site"};

            Y.one(".template").render(data,directive);
        })
    })
</script>
@pure pure merged commit be81612 into pure:master May 24, 2011
Owner
pure commented May 24, 2011

Hi Jesse,
I've patched the lib with your pull request.
I'll update the documentation too.
Thanks!
If there's a public use of the lib, let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment