[bt-devel] Gitorious Branch
Greg Hellings
greg.hellings at gmail.com
Mon Dec 13 08:02:05 MST 2010
All,
I've mentioned this in #bibletime over the weekend, but figured I
should state it here, for archival purposes. I have pushed a branch,
named 'externalcss', to
http://gitorious.org/~greghellings/bibletime/ghellings. The purpose
of this branch is to move the styling CSS portions of each of our
templates be moved into its own, external, CSS file rather than being
embedded in a complete HTML template file. The hope of this change is
multi-faceted in nature.
Firstly, this allows a template creator to only mess with the CSS
file, if they so desire, and not need to worry about keeping an HTML
template file up-to-date. To create a custom CSS, simply modify or
add a CSS file to the share/bibletime/display-templates/ directory of
your install and restart BibleTime. It will then be displayed in your
template file list in the configuration dialog.
Secondly, this allows a custom HTML structure file to be used if one
were so desired. This can allow the flexibility to add or detract
from the files while still maintaining easy inclusion of the current
CSS files with no need to modify multiple HTML structure template
files. In the future, if more of them are generated, these could be
presented to the user for selection in much the same way that the CSS
files currently are, or they could just be used for anything internal
that we wish to require different HTML skeletons for.
Thirdly, my personal axe-to-grind is the ability to add support for
individual module CSS files. I have currently only added and empty
hook in the HTML template file for the attaching of the module's CSS
file, there is no attempt to fill that hook with anything other than a
blank string. I intend to write that support and push an additional
commit to gitorious with this support. I know some people oppose this
idea, but I am in strong support of it, especially with some of the
potential it provides for giving the presenters greater control over
their modules while still allowing the user the full range of control
and configuration if they so desire.
Take a look and check it out. Let me know what you think, and feel
free to pull what you want out of it if you like it.
--Greg
More information about the bt-devel
mailing list