Discussion Group

Syndicate content
Development discussion and project notification for Spark view engine
Updated: 12 min 24 sec ago

Commented Issue: Css markup crashes view [6114]

Thu, 05/20/2010 - 14:51
<style type="text/css">
{
background-image:none;
float:left;
margin:0 5px;
padding:0;
</style>

error produced is: "error CS1513: } expected"
which is caused by "#breadCrumb ul li.first {"
Comments: ** Comment from web user: tylerl **

This is a known issue that has happened to a number of people. It's a syntax collision between spark and HTML that really should be fixed, but probably won't be.

RE: Commented Issue: Css markup crashes view [6114]

Thu, 05/20/2010 - 02:20
Good point, Robert. I didn't really like my idea either :).

-Charles

Behalf Of Rob G
Sent: Friday, May 14, 2010 9:26 AM
To: spark-dev@googlegroups.com

If you did this, then you would lose the semantic meaning that the "#"
symbol gives to CSS anyway. You may as well just put "html #breadCrumb"

Re: Commented Issue: Css markup crashes view [6114]

Thu, 05/20/2010 - 02:20
If you did this, then you would lose the semantic meaning that the "#"
symbol gives to CSS anyway. You may as well just put "html #breadCrumb"
instead and Spark will ignore is anyway, but the bigger issue here is that
it's bad ju-ju to put your styles in-line regardless, and even if you have
to, you can get around it as pointed out by James.

Re: Commented Issue: Css markup crashes view [6114]

Wed, 05/19/2010 - 21:48
Perhaps something like <# and #> could be added to spark, which would
ignore what would otherwise appear to be a spark code block. What do
you all think?

Sent from my iPhone

--
You received this message because you are subscribed to the Google Groups "Spark View Engine Dev" group.

Re: Commented Issue: Css markup crashes view [6114]

Wed, 05/19/2010 - 19:24
Alternatively you can preface your rule with html

<style type="text/css">
html #breadCrumb ul li.first {
{
background-image:none;
float:left;
margin:0 5px;
padding:0;

</style>

Essentially still the same rule but you can use it inline if you
really need to.

James

--
You received this message because you are subscribed to the Google Groups "Spark View Engine Dev" group.