Preprocessing CSS
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Tue May 24 12:11:10 PDT 2016
On 05/24/2016 03:03 PM, Seb wrote:
> 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!
That would be the domain of more advanced formatting engines such as
ddox. I wanted to get into ddox in the "I'll give myself 15 minutes to
do this" manner two times - even tried to redo my personal website with
ddox. I had to give up mostly due to documentation issues and
installation difficulties, but to my credit - :o) - I did send Sönke a
detailed email with what happened.
> 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.
Agreed, there's a lot of opportunity there.
Andrei
More information about the Digitalmars-d
mailing list