Code Monkey home page Code Monkey logo

Comments (6)

Wuvist avatar Wuvist commented on June 1, 2024

Yup, it doesn't work with comment, yet. Just issue an bug, should be able to fix soon.

from gorazor.

mgutz avatar mgutz commented on June 1, 2024

Thanks. Comments are fixed but plain text still broken.

@section side {
    plain text
}

from gorazor.

chenyukang avatar chenyukang commented on June 1, 2024

@Wuvist ,
section is treated as block now, so plain text is left.
Because in our project, we have code like this.

@section js {
ctx.AddJS("/assets/js/bootstrap-tag.min.js")
ctx.AddJS("/assets/js/chosen.jquery.min.js")
ctx.AddJS("/assets/js/jquery.hotkeys.min.js")
ctx.AddJS("/assets/js/bootstrap-wysiwyg.min.js")
ctx.AddJS("/assets/js/jquery-ui.custom.min.js")
ctx.AddJS("/assets/js/jquery.ui.touch-punch.min.js")
ctx.AddJS("/assets/js/jquery.slimscroll.min.js")
ctx.AddJS("/assets/js/mail.js")
<script>
    $(function() {
        for (var i in fs) {
            if (fs[i]) {
                fs[i]()
            }
        }
    })
</script>
}

from gorazor.

Wuvist avatar Wuvist commented on June 1, 2024

@mgutz This is the design, not bug.

The razor syntax for adding plain text would be:

@section side {
@:plain text
}

you mean refer to http://www.asp.net/web-pages/tutorials/basics/2-introduction-to-asp-net-web-programming-using-the-razor-syntax

GoRazor should already support @: notation.

from gorazor.

Wuvist avatar Wuvist commented on June 1, 2024

@chenyukang The current way that gorazor handles plain text is consistent with original razor.

from gorazor.

chenyukang avatar chenyukang commented on June 1, 2024

yes, @: is supported in section.

from gorazor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.