0

I'm trying to compile Twitter Bootstrap in LESS with WP-Less in Wordpress. When compiling, i get a parse error when i' face to a String Extrapolation as described in this link

It's decribed like that:

String interpolation

Variables can be embeded inside strings in a similar way to ruby or PHP, with the @{name} construct:

@base-url: "http://assets.fnord.com";
background-image: url("@{base-url}/images/bg.png");

and in mixins.less, my error come from:

      (~".span@{index}") { .span(@index); }

I've already post a question in the support section. But i'd like to see that String Extrapolation is not supported.

Do you have any idea ??

Best regards

S.

4

1 に答える 1

0

面白いものを見つけた..

WP-Less は lessphp.. に基づいていますが、プラグインには lessphp v0.3.1が含まれています。

lessphp v0.3.5 (ダウンロードページ) で変更することで、エラーメッセージが表示されなくなりました。

Twitter Bootstrap LESS バージョンを Wordpress に追加しても大丈夫だとは言いませんが、調査中です..

私にとってクローズドなトピック。

よろしくお願いします

S.

于 2012-06-20T10:37:14.017 に答える