tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Ingo Schwarze <schwarze@usta.de>
To: tech@mdocml.bsd.lv
Subject: Re: HTML fragment mode.
Date: Mon, 3 Oct 2011 23:05:56 +0200	[thread overview]
Message-ID: <20111003210556.GB20053@iris.usta.de> (raw)
In-Reply-To: <4E898B8B.4030404@bsd.lv>

Hi Kristaps,

> Enclosed is a small patch that, with -Ofragmnet, has -T[x]html only
> emit the CONTENT of an HTML file, not the file stuff itself
> (DOCTYPE, HTML, HEAD, BODY).  It also makes a new top-level node,
> <DIV CLASS="mandoc">, so that it's easier to embed mandoc -Thtml
> output in other pages.  Thus, consider this SSI pseudo-code:
> 
>   <HTML>
>     <HEAD><LINK to css><TITLE>blahblah</TITLE></HEAD>
>     <BODY>
>       <!-- Some regular header stuff. //-->
>       <!--#exec cgi="/cgi-bin/mandoc.cgi${PATH_INFO}" -->
>       <!-- Some footer stuff. //-->
>     </BODY>
>   </HTML>
> 
> This would be useful for mandoc.cgi, for example, because it
> wouldn't have to bundle all the extra HTML crap (headers, footers,
> etc.) nor would it need to use templates, worry about hardcoded CSS
> paths, etc. Clean!
> 
> Thoughts?

From briefly reading the patch, this makes sense to me.

In the manual, i'd probably add another sentence though
briefly stating what this option is useful for.

Yours,
  Ingo
--
 To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv

      reply	other threads:[~2011-10-03 21:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-03 10:16 Kristaps Dzonsons
2011-10-03 21:05 ` Ingo Schwarze [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111003210556.GB20053@iris.usta.de \
    --to=schwarze@usta.de \
    --cc=tech@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).