[Komodo-discuss] template-toolkit syntax checker
by cholet other posts by this author
Jul 8 2008 2:27PM messages near this date
view in the new Beta List Site
Re: [Komodo-discuss] Key Binding: Brief emulation
|
Re: [Komodo-discuss] template-toolkit syntax checker
I don't understand how the TT file type works.
First of all, it seems to think that TT is used only for HTML files:
[% foo %]
=> Warning: missing <!DOCTYPE> declaration, etc.
Ok, let's do HTML then:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xh
tml1-strict.dtd
">
[% FILTER collapse %]
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title> foo</title>
</head>
<body> bar</body>
</html>
the [% FILTER collapse %] line has this:
=> Warning plain text isn't allowed in <head> elements
and then a bunch of other warnings which seem a consequence of this
first one.
Removing this TT directive makes the syntax check pass.
I would expect the TT file type to ignore TT directives when syntax
checking; and maybe some special coloring for TT directives.
--
Ã?ric Cholet
_______________________________________________
Komodo-discuss mailing list
Komodo-discuss@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/Komodo-discuss
Thread:
cholet
Trent Mick
cholet
Trent Mick
cholet
R. Hicks
|