Hi Mat

> On 13 Sep 2018, at 16:11, Mat <matiasg...@gmail.com> wrote:
> 
> IMO this should work also as a styleblock so I'll make an issue unless you 
> object

It's not obvious how it should work. The idea would presumably be for the 
parser to detect the style tag and then swallow the content up to the closing 
tag without attempting to parse it. You’d probably want macro call parsing so 
that you could write “background: <<colour primary>>”. In practice, you may 
want arbitrary parse rules available.

There are a few potential workarounds short of putting the stylesheet into a 
separate tiddler. For example:

\define styles()
#imageonly { background: 
url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/652/confectionary.png";);
}
\end
<div id="imageonly"> foo </div>

<style>
<$text text=<<styles>>/>
</style>

We could perhaps encapsulate that approach into a <<styles>> macro that rolled 
everything together.

Best wishes

Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/44E3A7AC-1A7F-42CC-81A7-F42015E2C364%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to