[dokuwiki] Re: HTML and CSS

  • From: "Terence J. Grant" <tjgrant@xxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 26 Aug 2008 12:37:19 -0400

Hi Sylvain,

I think I understand your point a little better now.

My first thought is that you can already accomplish css blocks within
html blocks, either through... (forgive me if my syntax is off a
little here)

<html><link rel="stylesheet" href="file.css" /></html>
<html><div id="some_style_you_defined"></html>
==== Your Styled Section ====
Etc etc.
<html></div></html>

Or alternatively...

<html><div id="something" style="whatev."></html>
==== Your other styled section ====
etc etc.
<html></div></html>

My first instinct would be to favor separating wiki markup and html
markup as much as possible, so this might not be something I would do,
though i would probably go with the second method above if I had to.

The only thing I would add though is that a css plugin (which of
course does not exist) may be interesting, perhaps you'd have
something like this:

=== Some relevant section ===
.
.
.

<css|Some relevant section>
 div.blah
 {
  ...
 };
</css>

Hopefully it's obvious how this would work.

Again I'd reiterate though, to me separating content and visualization
is overall a good thing, and I'd think based on my experience the
cases in which you'd want to custom style a section might be very few
(limited to a page or set of pages) to which you might instead
investigate the loadskin plugin or the multitemplate template to get
page/namespace specific styling.

> To provide a user CSS for a specific wiki raw html block. Like a wiki
> raw CSS block:
> In the editor I would have the CSS with a <css></css> block then I
> would have a <html></html> block.
> Well, that's the idea.

-- 
--Terence J. Grant
-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: