Comments (6)
Yup, it doesn't work with comment, yet. Just issue an bug, should be able to fix soon.
from gorazor.
Thanks. Comments are fixed but plain text still broken.
@section side {
plain text
}
from gorazor.
@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.
@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.
@chenyukang The current way that gorazor handles plain text is consistent with original razor.
from gorazor.
yes, @: is supported in section.
from gorazor.
Related Issues (20)
- some char in template can cause compiled go file can not runable.
- add the option that the gorazor can generate a private function. HOT 1
- License GoRazor? HOT 1
- Not Compatible with idea HOT 2
- panic: Maximum number of elements exceeded. HOT 1
- Change the file case of the gohtml file,build the go file in mac,push it to a git ,pull that git in linux,and build the go file again,you will get two golang files with file case different.And the package will not compile in linux HOT 1
- can you make a idea plugin? HOT 1
- Import models from main package HOT 3
- bug (?) with @raw and variable.variable in range HOT 1
- Sublime Text3 3095版本,高亮问题 HOT 2
- Extra whitespaces in output HOT 1
- if 语句编译bug HOT 1
- for编译不能带len() HOT 1
- any plan to add a parameter indicating remove whitespace(between tags) or not?
- gohtml name cannot have ‘-’ HOT 1
- Issues dealing with CSS directives HOT 1
- package gopkg.in/fsnotify.v1: unrecognized import path
- 请问如何使用啊
- 参考nuxt.js做服务器端渲染框架? HOT 2
- Can't find layout: project/internal/app/templates/layout/base HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gorazor.