Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Passing SafeString as content #3

Open
marksteve opened this issue Apr 9, 2013 · 1 comment
Open

Passing SafeString as content #3

marksteve opened this issue Apr 9, 2013 · 1 comment

Comments

@marksteve
Copy link
Contributor

Doesn't work:

> pithy.button('.button', new pithy.SafeString('string'))
g.SafeString {_value: "<button class="button"></button>", toString: function, valueOf: function}

Works:

> pithy.button('.button', [new pithy.SafeString('string')])
g.SafeString {_value: "<button class="button">string</button>", toString: function, valueOf: function}
@caolan
Copy link
Owner

caolan commented Apr 14, 2013

The contents is always expected to be an array, but I suppose it would be nice to support String and SafeString too.

rafis pushed a commit to rafis/pithy that referenced this issue Jul 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants