<div dir="ltr">Why not just bundle less.php in your theme files? You'd have to slightly edit it as it uses file get/put contents.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 4 July 2013 19:05, Josh Pollock <span dir="ltr"><<a href="mailto:jpollock412@gmail.com" target="_blank">jpollock412@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">@emil-<div><br></div><div>That's neat, I didn't know Jetpack does that. Just took a look at it real quick, at least in Slim Jetpack it seems like it is a pretty minimal implementation.</div>
<div>
<br></div><div>Of course this is all kind of academic as I lack the PHP chops to write said patch(s). I'm more wondering if it is remotely possible that it could be accepted and therefore worth thinking about ways to get this done.</div>
<div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 9:17 PM, Emil Uzelac <span dir="ltr"><<a href="mailto:emil@uzelac.me" target="_blank">emil@uzelac.me</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Both LESS and Sass are available in WPCOM CSS Editor<br></div><div><a href="http://en.support.wordpress.com/custom-design/editing-css/" target="_blank">http://en.support.wordpress.com/custom-design/editing-css/</a><br>
</div><div><br></div><div>However as of last year, both Less and Sass are available</div><div>via Jetpack <a href="http://jetpack.me/2012/12/14/jetpack-2-0-3/" target="_blank">http://jetpack.me/2012/12/14/jetpack-2-0-3/</a> </div>
<div>with that said, the argument needs to be pretty good to</div><div>get preprocessors in the core itself :)</div><div><br></div><div>In my opinion whatever is in the Jetpack, will less likely</div>
<div>be included in the core, but it does not hurt to try.</div><span><font color="#888888"><div><br></div><div>Emil</div></font></span></div><div><div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Thu, Jul 4, 2013 at 7:52 PM, Josh Pollock <span dir="ltr"><<a href="mailto:jpollock412@gmail.com" target="_blank">jpollock412@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I'd make the case that if it were included it could enable theme and plugin developers to return option and theme mod values to SASS or LESS stylesheets. Among other cool things, I'm imagining in the customizer, instead of having a ton of color options, just setting a few options like primary, secondary, accent, etc. and then in my SASS/LESS file doing something like this:<div>
<br></div><div>$colors = get_theme_mod('theme_options');</div><div>$primary = $colors['primary'];</div><div>$secondary = $colors['secondary'];<br></div><div>$accent = $colors['accent'];<br>
<br></div><div>I actually could do something similar to this with wpless, but not integrated with the customizer. That said, I don't want to make my theme dependent on a plugin that I can't be sure of long-term development and support for. Also, I'd rather use SASS instead of LESS.</div>
<div><br></div><div>How's that argument? Not that I can back it with here's my patch...</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 8:33 PM, Chip Bennett <span dir="ltr"><<a href="mailto:chip@chipbennett.net" target="_blank">chip@chipbennett.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">No clue.<div><br></div><div>Is it important enough to warrant someone arguing the case for inclusion?</div>
</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 8:31 PM, Josh Pollock <span dir="ltr"><<a href="mailto:jpollock412@gmail.com" target="_blank">jpollock412@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">@Chip<div><br></div><div>Do you think there is any chance of a LESS or SASS preprocesser getting accepted into core if it was submitted?</div>
</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 7:12 PM, Chip Bennett <span dir="ltr"><<a href="mailto:chip@chipbennett.net" target="_blank">chip@chipbennett.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Perhaps a more ideal solution would be to submit a core ticket/patch to get a preprocessor in core? That way, core, Plugins, and Themes can rely on the core-bundled preprocessor.<div>
<br></div><div>Until then, as Emil said: as long as the Theme works properly out of the box, it's fine for Themes to ship with options/integration to support a Plugin that adds a preprocessor.</div>
</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 5:21 PM, Emil Uzelac <span dir="ltr"><<a href="mailto:emil@uzelac.me" target="_blank">emil@uzelac.me</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><i>I meant</i><div><br></div><div><span style="font-family:arial,sans-serif;font-size:13px">No need to rely </span><span style="font-family:arial,sans-serif;font-size:13px">or require</span><span style="font-family:arial,sans-serif;font-size:13px"> WP-LESS*</span></div>
</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 4:17 PM, Emil Uzelac <span dir="ltr"><<a href="mailto:emil@uzelac.me" target="_blank">emil@uzelac.me</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">If he ships the Theme with LESS as an additional (optional) feature and the Theme<div>works out of the box as you and Chip mentioned, it's still good to go and acceptable :)</div><div><br></div>
<div>No need to rely or require on WP-LESS.</div></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 4:01 PM, Josh Pollock <span dir="ltr"><<a href="mailto:jpollock412@gmail.com" target="_blank">jpollock412@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">@Divesh-<div><br></div><div>If you ship your theme with processed and unprocessed code, as well as directions in your readme for using wpless with your theme then all of the requirements (theme review guidelines and yours) will be met. That way it works out of the box, but the end user knows you used wpless and how to use it to modify your theme.</div>
</div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 4:06 PM, Emil Uzelac <span dir="ltr"><<a href="mailto:emil@uzelac.me" target="_blank">emil@uzelac.me</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">even though if there's an option and the Theme works<br><div>right without the preprocessors is not the reason to fail</div><div>a Theme </div></div><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">
On Thu, Jul 4, 2013 at 3:02 PM, Amy Hendrix <span dir="ltr"><<a href="mailto:sabreuse@gmail.com" target="_blank">sabreuse@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'd say that both Sass and LESS files should be accepted (because if<br>
you're a Sass or LESS user, it's far preferable to make any downstream<br>
changes to the original files) -- but the theme should be packaged<br>
with compiled css, and not depend on running any preprocessing live,<br>
whether it's directly on the server or by way of a WP plugin.<br>
<br>
Emil, the tutorial you point to is about using preprocessors in your<br>
development environment and compiling out the finished css. The<br>
original question was about requiring libraries to compile it live on<br>
the server, which should not be approved IMO (and which is a terrible<br>
idea for preprocessing performance, but that's a debate that's way out<br>
of scope for this list!)<br>
<br>
Personally, I love preprocessors; I think it's the way of the future<br>
and I maintain a library for working with Sass and _s. But asking<br>
users to install extra libraries just to be able to use a theme at all<br>
is _doing_it_wrong().<br>
<div><div><br>
On Thu, Jul 4, 2013 at 3:51 PM, Emil Uzelac <<a href="mailto:emil@uzelac.me" target="_blank">emil@uzelac.me</a>> wrote:<br>
> Both Sass and LESS preprocessor should be accepted.<br>
> Not really sure if you need any extra PHP's for this.<br>
> Take a look at this brief tut.<br>
><br>
><br>
> On Thu, Jul 4, 2013 at 1:30 PM, Jose Castaneda <<a href="mailto:jomcastaneda@gmail.com" target="_blank">jomcastaneda@gmail.com</a>><br>
> wrote:<br>
>><br>
>> The thing to remember about the WordPress theme repo is that not everybody<br>
>> that will use your theme is a developer. More often than not it is a person<br>
>> with little to no knowledge of web development or programming prowess. What<br>
>> I would do is include both the LESS files and the compiled CSS and leave a<br>
>> note on the readme file or put up some sort of notice.<br>
>><br>
>><br>
>> On Thu, Jul 4, 2013 at 7:54 AM, divesh kumar <<a href="mailto:diveshkumar1983@gmail.com" target="_blank">diveshkumar1983@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> hi greg<br>
>>><br>
>>> but if i use compiled css it will be just a plain css and nobody would<br>
>>> get to know that its using lessphp.<br>
>>><br>
>>> On Jul 4, 2013 5:15 PM, "Srikanth Koneru" <<a href="mailto:tskk79@gmail.com" target="_blank">tskk79@gmail.com</a>> wrote:<br>
>>>><br>
>>>> The basic theme must function without depending on any plugin. You can<br>
>>>> have additional features which can come live if plugins(that are required<br>
>>>> for those features) are activated.<br>
>>>> If lessphp framework is allowed in themes, you can bundle it with your<br>
>>>> theme itself.<br>
>>>><br>
>>>><br>
>>>> On Thu, Jul 4, 2013 at 4:52 PM, divesh kumar <<a href="mailto:diveshkumar1983@gmail.com" target="_blank">diveshkumar1983@gmail.com</a>><br>
>>>> wrote:<br>
>>>>><br>
>>>>> Hi Kavita,<br>
>>>>><br>
>>>>> Thanks for the reference. so that means user must install that plugin<br>
>>>>> in order to use my theme. Can i create any kind of dependency of my theme to<br>
>>>>> use this?<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> On Thu, Jul 4, 2013 at 4:26 PM, Kavita Kumawat <<a href="mailto:erkavecb@gmail.com" target="_blank">erkavecb@gmail.com</a>><br>
>>>>> wrote:<br>
>>>>>><br>
>>>>>> you may want to check this.<br>
>>>>>><br>
>>>>>> <a href="http://wordpress.org/plugins/wp-less/" target="_blank">http://wordpress.org/plugins/wp-less/</a><br>
>>>>>><br>
>>>>>> -Kavita<br>
>>>>>><br>
>>>>>><br>
>>>>>> On Thu, Jul 4, 2013 at 3:34 PM, divesh kumar<br>
>>>>>> <<a href="mailto:diveshkumar1983@gmail.com" target="_blank">diveshkumar1983@gmail.com</a>> wrote:<br>
>>>>>>><br>
>>>>>>> Guys,<br>
>>>>>>><br>
>>>>>>> Does that means I cannot use SASS or any other CSS framework with<br>
>>>>>>> wordpress theme. I don't think this make sense.<br>
>>>>>>><br>
>>>>>>> Thanks<br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> On Thu, Jul 4, 2013 at 2:22 PM, Srikanth Koneru <<a href="mailto:tskk79@gmail.com" target="_blank">tskk79@gmail.com</a>><br>
>>>>>>> wrote:<br>
>>>>>>>><br>
>>>>>>>> Themes should work out of the box.<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> On Thu, Jul 4, 2013 at 2:19 PM, carolina poena<br>
>>>>>>>> <<a href="mailto:myazalea@hotmail.com" target="_blank">myazalea@hotmail.com</a>> wrote:<br>
>>>>>>>>><br>
>>>>>>>>> ticket: <a href="http://themes.trac.wordpress.org/ticket/12893" target="_blank">http://themes.trac.wordpress.org/ticket/12893</a><br>
>>>>>>>>> In readme:<br>
>>>>>>>>><br>
>>>>>>>>> 1. Upload the `snAdaptive` folder to the `/wp-content/themes/`<br>
>>>>>>>>> directory<br>
>>>>>>>>> 2. Download lessphp framework from<br>
>>>>>>>>> <a href="http://leafo.net/lessphp/src/lessphp-0.3.9.tar.gz" target="_blank">http://leafo.net/lessphp/src/lessphp-0.3.9.tar.gz</a>.<br>
>>>>>>>>> 3. Extract it in the directory themes/snAdaptive/lessphp.<br>
>>>>>>>>> 4. Make sure there is a file less.inc.php in directory<br>
>>>>>>>>> /themes/snAdaptive/lessphp/.<br>
>>>>>>>>> 5. Now you are ready to use the theme.<br>
>>>>>>>>><br>
>>>>>>>>> The theme will not be approved eitherway but this is not ok right?<br>
>>>>>>>>> ^^<br>
>>>>>>>>><br>
>>>>>>>>> //Carolina<br>
>>>>>>>>><br>
>>>>>>>>><br>
>>>>>>>>> _______________________________________________<br>
>>>>>>>>> theme-reviewers mailing list<br>
>>>>>>>>> <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
>>>>>>>>> <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
>>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> _______________________________________________<br>
>>>>>>>> theme-reviewers mailing list<br>
>>>>>>>> <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
>>>>>>>> <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
>>>>>>>><br>
>>>>>>><br>
>>>>>>><br>
>>>>>>> _______________________________________________<br>
>>>>>>> theme-reviewers mailing list<br>
>>>>>>> <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
>>>>>>> <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
>>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> _______________________________________________<br>
>>>>>> theme-reviewers mailing list<br>
>>>>>> <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
>>>>>> <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
>>>>>><br>
>>>>><br>
>>>>><br>
>>>>> _______________________________________________<br>
>>>>> theme-reviewers mailing list<br>
>>>>> <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
>>>>> <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
>>>>><br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> theme-reviewers mailing list<br>
>>>> <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
>>>> <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
>>>><br>
>>><br>
>>> _______________________________________________<br>
>>> theme-reviewers mailing list<br>
>>> <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
>>> <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
>>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> theme-reviewers mailing list<br>
>> <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
>> <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> theme-reviewers mailing list<br>
> <a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
> <a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
><br>
_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org">theme-reviewers@lists.wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/mailman/listinfo/theme-reviewers</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>My Blog: <a href="http://pross.org.uk/" target="_blank">http://pross.org.uk/</a><br>Plugins : <a href="http://pross.org.uk/plugins/" target="_blank">http://pross.org.uk/plugins/</a><br>
Themes: <a href="http://wordpress.org/extend/themes/profile/pross" target="_blank">http://wordpress.org/extend/themes/profile/pross</a>
</div>