Community > Answers
67 views

Does Live Visualizer support @: Syntax for dynamic wrapping?

Hi,

I'm working on a template for Live Visualizer. I'm trying to dynamically wrap some html, similar to this example, https://stackoverflow.com/questions/46019375/asp-net-razor-dynamically-wrapping-ever-6-elements-in-bootstrap-rows

It seems that the Razor engine doesn't support the @: syntax. I tried doing a very basic test of just 

@:This is some content 

to see if it would out the text as content, but it didn't seem to work. Is this something that's supported in the Razor engine?

Thanks!

Josh Slaughter Josh Slaughter
asked 08/21/2019 18:22
Add Comment
Last Activity 08/22/2019 01:21

1 Answer(s)

  • answered 08/21/2019 23:12
    Mandeep Singh
    Add Comment
    Josh Slaughter
    replied 08/22/2019 01:21

    Thanks for the example. I see what I was doing wrong. In my specific template my if statement was incorrect. For the string comparison i was using single quotes instead of double quotes so if(Model.Carousel_Settings_Submission["Carousel Width"] != '12') should have really been if(Model.Carousel_Settings_Submission["Carousel Width"] != "12")


    Reply
Add an Answer