Got some help on it from stackoverflow.

It is actually a DOM object that is returned, and the html can be extracted 
using outerHTML property.

Thanks,
Murtaza

On Friday, June 22, 2012 6:49:08 PM UTC+5:30, Dave Sann wrote:
>
> actually - not quite true
>
> You could always extract the html from the generated element using std 
> browser functions, jquery or similar.
>
>
> On Friday, 22 June 2012 23:16:56 UTC+10, Dave Sann wrote:
>>
>> you can't
>>
>> I believe that the code is designed to specifically bypass strings.
>>
>> Why do you want a string in the client?
>>
>>
>>
>> On Friday, 22 June 2012 20:38:09 UTC+10, Murtaza Husain wrote:
>>>
>>>
>>> Nope doesnt work.
>>>
>>>
>>> On Friday, June 22, 2012 4:05:13 PM UTC+5:30, bsmith.occs wrote:
>>>>
>>>> str 
>>>>
>>>> On Fri, Jun 22, 2012 at 11:58 AM, Murtaza Husain 
>>>> <murtaza.hus...@sevenolives.com> wrote: 
>>>> > 
>>>> > Hi, 
>>>> > 
>>>> > I am using Chris Ganger's crate library to generate html on the 
>>>> client side. 
>>>> > 
>>>> > 
>>>> >     (defpartial html [] form) 
>>>> > 
>>>> >     (def form 
>>>> >       [:div.form-horizontal 
>>>> >        [:fieldset 
>>>> >         [:legend "Student Registeration"] 
>>>> >         [:div.control-group 
>>>> >          [:label.control-label "Hello World"]]]) 
>>>> > 
>>>> > When I execute the above function in clojurescript repl as - (html) - 
>>>> I get 
>>>> > - #<[object HTMLDivElement]>. 
>>>> > 
>>>> > However when I execute it as (.log js/console (html)), the proper 
>>>> generated 
>>>> > html is logged into the browser's console. 
>>>> > 
>>>> > How do I get it to return a HTML string instead of an object? 
>>>> > 
>>>> > Thanks, 
>>>> > Murtaza 
>>>> > 
>>>> > -- 
>>>> > You received this message because you are subscribed to the Google 
>>>> > Groups "Clojure" group. 
>>>> > To post to this group, send email to clojure@googlegroups.com 
>>>> > Note that posts from new members are moderated - please be patient 
>>>> with your 
>>>> > first post. 
>>>> > To unsubscribe from this group, send email to 
>>>> > clojure+unsubscr...@googlegroups.com 
>>>> > For more options, visit this group at 
>>>> > http://groups.google.com/group/clojure?hl=en 
>>>>
>>>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to