For example I have @ImagePath variable and image name Immg.jpg.
How can i concat them in obe string?
It would be nice it the Operators handled it for now, basically just
use the plus sign to concat strings. If using '+' complicates things
in some way then '&' or something else borrowed from whatever language
the syntax most follows/emulates so far.
Not to change the subject, but... where do we post/submit feature
requests, wishlist ideas, etc?
> To unsubscribe from this group, send email to dotless+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
>
> > To unsubscribe from this group, send email to dotless+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.- Скрыть цитируемый текст -
>
> - Показать цитируемый текст -
> > To unsubscribe from this group, send email to dotless+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.- Hide quoted text -
>
> - Show quoted text -
@skin_path: '/Portal/0/'Skins/MCT2010/';
@image_path: @skin_path & 'css/image/';
#header {
color: white;
background: url( @image_path & 'header-nice.png') top left
#default['background-color'];
}
> > - Показать цитируемый текст -- Hide quoted text -
a { x : format("{0} {1}", "hello", "world") }
should give you
a { x : hello world }
J
Now dotless core doesn't crashes on such syntax:
@var: "hello";
a
{
background: url(@var + " World!");
}
to:
a
{
background: url("hello World!");
}
I just add replacing string " + " to string.empty and it's ok now,
it would be great to concat several times in future and i hope you
will support it.
> --
> To unsubscribe, reply using "remove me" as the subject.
>
PS, at exactly what version number did format() become available?
On Apr 8, 7:09 am, Daniel Hölbling <hoelblin...@gmail.com> wrote:
> It's already possible using the format function.
> It works like the .NET format function so you can call it with:
>
> format("{0}{1}", "string1", "string2")
> to get a concatenated string "string1string2"
>
> greetings Daniel
>
>
>
> On Thu, Apr 8, 2010 at 9:19 AM, Julian Birch <julian.bi...@gmail.com> wrote:
> > Try using format to achieve this. :)
>
> > On Thursday, April 8, 2010, ADV <denis.aga...@hotmail.com> wrote:
> > > Well, i see no answer today but is their any plans to support string
> > > concatination?
>
> > > Now dotless core doesn't crashes on such syntax:
>
> > > @var: "hello";
>
> > > a
> > > {
> > > background: url(@var + " World!");
> > > }
>
> > > to:
>
> > > a
> > > {
> > > background: url("hello World!");
> > > }
>
> > > I just add replacing string " + " to string.empty and it's ok now,
> > > it would be great to concat several times in future and i hope you
> > > will support it.
>
> > > --
> > > To unsubscribe, reply using "remove me" as the subject.- Hide quoted text -