working on the dlang.org website
Walter Bright
newshound2 at digitalmars.com
Mon Jul 15 12:08:07 PDT 2013
On 7/15/2013 1:20 AM, John Colvin wrote:
> On Monday, 15 July 2013 at 03:22:59 UTC, Walter Bright wrote:
>> For example, if I want to change the copyright notice, I can:
>>
>> 1. edit hundreds of files
>>
>> -- or --
>>
>> 2. edit a Ddoc macro
>>
>> It's no contest.
>
> Even the very simplest roll-your-own framework would remove this necessity.
Please note that I wrote this in response to Ary's suggestion to just write raw
HTML.
> Even simpler, you just split the contents of the site in to components and load
> them via your favourite scripting language, e.g.
>
> <?php echo get_file_contents("copyright.html"); ?>
>
> I don't necessarily think using ddoc is a bad idea, but web development has
> moved on a long way from editing every file separately.
Yes, and Ddoc has also moved on from that. That's why I wrote it, in fact.
More information about the Digitalmars-d
mailing list