yes i need to use that specific code block to be rendered in client side.
actually i was about to use plain handle bars since i was not aware of the
caramel wrapper. thanks for reminding :-)

This code block is a part of another parent partial. please see below

----------- parent partial -----------------------------
|                                                            |
|          {{exp1}}                                       |
|                                                            |
|           {{exp2}}                                      |
|                                                            |
|                                                            |
|     ---------------- client side hbs -------------   |
|     |                                                   |  |
|     |                {{exp1}}                        |  |
|     |                                                   |  |
|     ----------------------------------------------------   |
|                                                            |
|                                                            |
|                                                            |
|                                                            |
-------------------------------------------------------------

will a combination of partials and templates work for this ?





On Sun, Jul 20, 2014 at 6:13 PM, Dakshika Jayathilaka <[email protected]>
wrote:

> So are you trying use hbs on client side
> rendering(caramel.handlebars.client.js) ? If so you need to add it as
> template.
>
> *Dakshika Jayathilaka*
> Software Engineer
> WSO2, Inc.
> lean.enterprise.middleware
> 0771100911
>
>
> On Sun, Jul 20, 2014 at 10:51 AM, Rushmin Fernando <[email protected]>
> wrote:
>
>> tried it again with a very simple block with no content. please see the
>> following scenarios.
>>
>> 1) {{#if hasSubscriptionInfo}}
>>
>> {{/if}}
>>
>>  no parse errors
>>
>> 2) \{{#if hasSubscriptionInfo}}
>>
>> {{/if}}
>>
>> parse error
>>
>>  3) \{{#if hasSubscriptionInfo}}
>>
>> \{{/if}}
>>
>> parse error
>>
>>
>> am i doing something wrong here ?
>>
>> html entities doesn't work since I need that block to be interpreted by
>> HBS in front end, not just to display on the page :-)
>>
>>
>>
>>
>>
>>
>>
>> On Sun, Jul 20, 2014 at 12:57 PM, Dakshika Jayathilaka <[email protected]
>> > wrote:
>>
>>> above works for sure.. seems your using it on wrong way.
>>>
>>> second option is using html entities.
>>>
>>> try with this:
>>>
>>> *&lbrace;&lbrace; #if &rbrace;&rbrace;*
>>>
>>>
>>>
>>> *Dakshika Jayathilaka*
>>>  Software Engineer
>>> WSO2, Inc.
>>> lean.enterprise.middleware
>>> 0771100911
>>>
>>>
>>> On Sun, Jul 20, 2014 at 6:54 AM, Rushmin Fernando <[email protected]>
>>> wrote:
>>>
>>>> thanks dakshika !!
>>>>
>>>> followed your instructions. backslash worked well with expressions. but
>>>> gave errors when there are helpers black like {{ #if }}
>>>>
>>>> In my hbs block there are quite a few {{ }} blocks. so it will be
>>>> great if i have a directive to say not to translate a whole block.
>>>>
>>>> HTML escape works only after the translation. so it doesn't fit in.
>>>>
>>>>
>>>>
>>>>
>>>> On Sun, Jul 20, 2014 at 11:22 AM, Dakshika Jayathilaka <
>>>> [email protected]> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> You can simply use the double braces with a backslash.
>>>>>
>>>>> *\{{your content}}*
>>>>>
>>>>> normally handle bars supports HTML-escapes with *{{{}}} *
>>>>>
>>>>> Regards,
>>>>>
>>>>> *Dakshika Jayathilaka*
>>>>> Software Engineer
>>>>> WSO2, Inc.
>>>>> lean.enterprise.middleware
>>>>> 0771100911
>>>>>
>>>>>
>>>>> On Sun, Jul 20, 2014 at 5:16 AM, Rushmin Fernando <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> can we $subject ?
>>>>>>
>>>>>> I need to do use a block of handlebars in front end, so i need
>>>>>> caramel engine NOT to translate that certain bock in the jagg controller.
>>>>>>
>>>>>> whats the smartest way of doing this please ?
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Rushmin Fernando*
>>>>>> *Technical Lead*
>>>>>>
>>>>>> WSO2 Inc. <http://wso2.com/> - Lean . Enterprise . Middleware
>>>>>>
>>>>>> email : [email protected]
>>>>>> mobile : +94772310855
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> Dev mailing list
>>>>>> [email protected]
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Rushmin Fernando*
>>>> *Technical Lead*
>>>>
>>>> WSO2 Inc. <http://wso2.com/> - Lean . Enterprise . Middleware
>>>>
>>>> email : [email protected]
>>>> mobile : +94772310855
>>>>
>>>>
>>>>
>>>
>>
>>
>> --
>> *Rushmin Fernando*
>> *Technical Lead*
>>
>> WSO2 Inc. <http://wso2.com/> - Lean . Enterprise . Middleware
>>
>> email : [email protected]
>> mobile : +94772310855
>>
>>
>>
>


-- 
*Rushmin Fernando*
*Technical Lead*

WSO2 Inc. <http://wso2.com/> - Lean . Enterprise . Middleware

email : [email protected]
mobile : +94772310855
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to