Preprocessing CSS

Seb via Digitalmars-d digitalmars-d at puremagic.com
Tue May 24 12:03:14 PDT 2016


On Tuesday, 24 May 2016 at 18:47:57 UTC, Andrei Alexandrescu 
wrote:
>> Is ddoc intended to generate css?
>
> Yes. Ddoc is a general preprocessing engine, much like m4 
> discussed in the article I mentioned.

I had a very hard time to get used to Ddoc and all the custom D 
macros, but still I think the idea of shipping such a general 
engine with the compiler is great. However we should make it more 
powerful then. Can't we allow CTFE in Ddoc?
This would help a lot!

I have made a couple of improvement's to the dlang.org, but they 
all are JS "post-processing" hacks, because at the moment one 
can't do this in Ddoc
See e.g.

https://github.com/dlang/dlang.org/pull/1288 (adding anchors)
https://github.com/dlang/dlang.org/pull/1307 (showing list of 
contributors)

A lot of other stuff (LaTeX support, search index, grouped 
overview menu etc.) would also be possible then.


More information about the Digitalmars-d mailing list