Re: [Vala] gtkaml 0.2.11 and 0.2.12 released
- From: pancake <pancake youterm com>
- To: Frederik <scumm_fredo gmx net>
- Cc: vala-list <vala-list gnome org>
- Subject: Re: [Vala] gtkaml 0.2.11 and 0.2.12 released
- Date: Sat, 16 Oct 2010 20:12:42 +0200
I think that would be really nice. In fact is that json can represent mostly the same structures as xml. And
it is far more easy for humans.
What i dont see here is how cdata can be represented. Because it will break json compatibility.. Maybe adding
a comment in a specific form? Like /*-- ...--*/
The g:public will not be a valid json dict key. So maybd g.public can be used here.
As we need to parse comments , this will require a self written json parser.
It shouldnt be hard to write a proof of concept in perl to translate json to xml before running gtkaml.. Or
internally in gtkaml. If file extension is .gtkson it will do the translation and then inteernally parse the
xml.
Will think on that. I think it will be an interesting feature to have.
Another thing i would love to havd in gtkaml is support for fastvapis. Any volunteer here?
On 15/10/2010, at 21:32, Frederik <scumm_fredo gmx net> wrote:
Vlad Grecescu wrote:
Gtkaml is an markup language that reuses the Vala compiler to write Gtk+
widgets through casual XML.
<HBox homogeneous="false">
<Label label="_Hello" with-mnemonic="true" expand="false"
fill="false"/>
<Entry g:public="my_entry" text="World! "/>
</HBox>
Features:
* compact XML syntax for describing Gtk widgets
Hi,
have you considered using a more JSON-like syntax instead of XML?
Example:
HBox {
homogeneous: false
Label {
label: "_Hello"
with-mnemonic: true
expand: false
fill: false
}
Entry {
g:public: "my_entry"
text: "World!
}
}
(similar to JavaFX Script and QML)
Most people do not enjoy writing XML by hand. And the code islands
would not have to be embedded in <![CDATA[ ]]> blocks.
Otherwise I think people will not see the difference to loading the UI
at runtime via GtkBuilder.
Best regards,
Frederik
_______________________________________________
vala-list mailing list
vala-list gnome org
http://mail.gnome.org/mailman/listinfo/vala-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]