Alexander Medvednikov
b42c824cdb
vweb: simplify @foo by removing V_TEMPLATE rule
2022-05-14 17:46:30 +03:00
Alexander Medvednikov
9355048b6c
tmpl: minor fixes and optimizations
2022-04-23 16:01:44 +03:00
Alexander Medvednikov
d4a0d6f73c
all: byte => u8
2022-04-15 14:58:56 +03:00
Benjamin Stigsen
ceb05b163a
strings: rename Builder.write_b() to Builder.write_byte(), add deprecation ( #13313 )
2022-01-28 20:34:44 +02:00
yuyi
291a1ffd8d
token: rename Position to Pos, rename position() to pos() ( #13279 )
2022-01-26 12:36:28 +02:00
Delyan Angelov
40a5c5c1a0
parser: make the $tmpl subparser more robust. The legacy .html mode, is now ON, only for .html template files.
...
Implement a .simple default mode, with *minimum* heuristcs, and only
supporting expansion of @expressions, @include, @if, @else, @for, @end.
The existing .html mode, with its complex state transitions for html/js/css
and heuristics, is now used *only* for template files, that have the `.html`
extension.
2022-01-18 14:57:45 +02:00
Delyan Angelov
5717066147
ci: fix `$tmpl` regression detected by gitly tests (after a73e146
)
2022-01-07 19:19:31 +02:00
Artem
a73e1462f0
tmpl.v: fix of is_html_open_tag function and allow usage of V template sign '@' in JS code ( #13067 )
2022-01-07 14:31:32 +02:00
Alexander Medvednikov
59ed4be49a
all: update copyright year
2022-01-04 12:21:12 +03:00
yuyi
e433badcb8
parser, cgen: fix multiple comptime tmpl in one function ( #12757 )
2021-12-08 11:12:02 +03:00
Delyan Angelov
d431145a39
v.util,tools: use os.join_path_single
2021-11-22 21:42:55 +02:00
Alexander Medvednikov
f6bdc6b87e
tmpl: fix <div> inside <div>
2021-09-21 07:54:10 +03:00
05st
f9f4867c25
tmpl: fix $tmpl comptime operation only working in return statement ( #11541 )
2021-09-19 23:22:26 +03:00
Dialga
66ef27a776
tmpl: fix escaping @ ( #11452 )
2021-09-09 20:27:24 +03:00
Dialga
905c292a81
tmpl: enforce stricter line checking for html interpolation ( #11413 )
2021-09-07 02:21:23 +03:00
Dialga
87f38bf6e7
tmpl: don't trim whitespace and escape \ ( #11393 )
2021-09-06 03:12:53 +03:00
涂紳騰(Shen-Teng Tu)
3c72c6abc2
parser: disable template variables in `<style>` ( #9777 )
2021-04-17 15:47:36 +03:00
涂紳騰(Shen-Teng Tu)
d9fdae1de9
parser: escape js template literal syntax inside <script> tags ( #9738 )
2021-04-15 12:39:39 +03:00
涂紳騰(Shen-Teng Tu)
7d5c1c2ddb
tmpl: inline styles with attributes ( #9605 )
2021-04-06 15:17:40 +02:00
Anton Zavodchikov
1ad4623fb8
tmpl: move to v/parser ( #9052 )
2021-03-15 13:35:55 +02:00