Then it will be like,

{{placeholder "favicon"}}
{{favicon "img/wso2.png"}}

 which IMO doesn't look nice. So let's stick with above solution.

On Wed, Jan 18, 2017 at 9:56 PM, Manuranga Perera <[email protected]> wrote:

> BTW, until then can we move that line to the the layout (not as a default
> value)? will that work?
>
> On Wed, Jan 18, 2017 at 4:23 PM, Manuranga Perera <[email protected]> wrote:
>
>> +1
>>
>> On Wed, Jan 18, 2017 at 4:21 PM, SajithAR Ariyarathna <[email protected]>
>> wrote:
>>
>>> How about defining a default favicon in the layout?
>>>
>>> We have a feature called 'default value for a placeholer', basically
>>> when defining a placeholder (using the {{placeholder}} helper) you can set
>>> a default value for that placeholder. So if no other value set to that
>>> placeholder, the default value will be used.
>>>
>>> e.g. Instead of defining the 'title' placeholder like this <title>
>>> {{placeholder "title"}}</title>, you can set a default value like this <
>>> title>{{#placeholder "title"}}Default Title{{/placeholder}}</title>
>>>
>>> This can be done to the 'favicon' placeholder as well. We have done this
>>> in the 'main' layout of the sample foundation component. [1]
>>>
>>> [1] https://github.com/this/carbon-uuf/blob/master/samples/c
>>> omponents/org.wso2.carbon.uuf.sample.foundation.ui/src/main/
>>> layouts/main.hbs#L7-L9
>>>
>>> Thanks.
>>>
>>>
>>> On Wed, Jan 18, 2017 at 9:17 PM, Manuranga Perera <[email protected]> wrote:
>>>
>>>> How about $subject ? In IS portal I see this every page.
>>>> Has it been already done?
>>>> --
>>>> With regards,
>>>> *Manu*ranga Perera.
>>>>
>>>> phone : 071 7 70 20 50
>>>> mail : [email protected]
>>>>
>>>
>>>
>>>
>>> --
>>> Sajith Janaprasad Ariyarathna
>>> Software Engineer; WSO2, Inc.;  http://wso2.com/
>>> <https://wso2.com/signature>
>>>
>>
>>
>>
>> --
>> With regards,
>> *Manu*ranga Perera.
>>
>> phone : 071 7 70 20 50
>> mail : [email protected]
>>
>
>
>
> --
> With regards,
> *Manu*ranga Perera.
>
> phone : 071 7 70 20 50
> mail : [email protected]
>



-- 
Sajith Janaprasad Ariyarathna
Software Engineer; WSO2, Inc.;  http://wso2.com/
<https://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to