mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: switch to the new fn arg syntax everywhere; add lots of vfmt -verify tests
This commit is contained in:
@@ -12,7 +12,7 @@ const (
|
||||
)
|
||||
|
||||
// compile_file compiles the content of a file by the given path as a template
|
||||
pub fn compile_file(path, fn_name string) string {
|
||||
pub fn compile_file(path string, fn_name string) string {
|
||||
html := os.read_file(path) or {
|
||||
panic('html failed')
|
||||
}
|
||||
@@ -26,7 +26,7 @@ enum State {
|
||||
//span // span.{
|
||||
}
|
||||
|
||||
pub fn compile_template(html_, fn_name string) string {
|
||||
pub fn compile_template(html_ string, fn_name string) string {
|
||||
// lines := os.read_lines(path)
|
||||
mut html := html_.trim_space()
|
||||
mut header := ''
|
||||
|
Reference in New Issue
Block a user