Comments (3)
@mgutz This this actually in the todo: https://github.com/sipin/gorazor#todo This very last line.
We are still in the process of turning gorazor's feature, like it's really needed to make all parameters in a layout to be string. We may start performance optimisation after "feature freeze". Nonetheless, PR are most welcomed.
:)
from gorazor.
NP. I misunderstood that line. I'll try to find some time to do a PR. It might be better to return a SafeBuffer
type SafeBuffer {
bytes.Buffer
Safe bool
}
This is how template engines I've used in node.js determine whether a function's return value needs escaping.
from gorazor.
You can see my fork. View the example. I don't think it's worth doing a PR as it will likely be rejected because it's more a refactoring and I want to remove even more from the library.
from gorazor.
Related Issues (20)
- 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
- 操作dom问题 HOT 1
- Ide方面支持goland吗?没有具体报错 无法在ide调试 HOT 1
- gohtml语法问题求助 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.