PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_Template_Flexy » Bug #2465

flexy: toStyle addition

Details

Request #2465flexy: toStyle addition
Submitted2004-10-05 20:29 UTC
Fromjesse dot planck at gmail dot com
StatusClosed
PackageHTML_Template_Flexy
PHP Version4.3.4
OSall
Roadmaps(Not assigned)

Comments

[2004-10-05 20:29 UTC] jesse dot planck at gmail dot com

Description:
------------
Flexy:toJavascript is very helpful, yet I was wondering
if we can have something to help deal with CSS Style
Sheets.

Many HTML workers use the @import to create web sites
that degrade well with older browsers. It would be nice
to be able to manipulate those.

example of multiple styles for layout:

<link rel="stylesheet" type="text/css" media="print"
href="{ROOT_CSS}/print.css">
<link rel="stylesheet" type="text/css" media="screen"
href="{ROOT_CSS}/compatible.css">
<style type="text/css" media="screen">
<!--
@import url({ROOT_CSS}/main.css);
-->
</style>

There is probably a way, yet I am still digging for it!

[2004-10-06 13:59 UTC] jesse dot planck at gmail dot com

Probably.

I'm guessing that Flexy will not step into <style>
because of the same problems caused by javascript and
all those nasty "{}". It would be nice to do simple
#var# replacements in <style>. I don't think I would add
any other functionality, but I'm sure other people would
have reasons... like allowing "IF" maybe.

Being able to manipulate in-line styles can be cool for
some folks I'm sure. My example is very simple, and I am
simply trying to keep all template elements centralized
and dependent on configuration settings in the PHP
application.

Jess.