I might sky-rocket your project... I have programmed a home-made template parser with an associated dynamic template language. The language is called openFTL (open Flexible Template Language) and is currently on it's 3rd version (3.2 beta 2 exactly).
Where it is becoming interesting for you, is the structure of my language and the unique feature of the template parser;
1) Structure: <ftl:tagname arg1="value1" arg2=3 arg3="long string with **$$รนรน%% special chars!">content of the tag</ft:tagname> or <ftl:tagname arg="value" /> Change the namespace, and the parser will recognize and parse all FBML tags.
2) Unique feature: Where all template parsers actually implement their tags the hard way, directly in the parser's code, the FTL parser only implements 4 tags, since their function is to be controlled via PHP with the parser API (loop, onEmptyLoop, section and show). All the other tags are plugins!! You want a new tag name profilepicture? Just create the codeparser_profilepicture() function, move the file in the /plugin/ directory, and the parser will now recognize and parse all <ftl:profilepicture /> tags!
So how can that help you? Take my php class (yeah, it's a single powerful file), change the namespace of the tags (one var to change), and implement all the FBML tags you want by creating numerous plugins.
I found your project by tipping "fbml parser" in google, since I'm planning to launch a similar project.
If you're interested, contact me and I'll send you my parser ;)
I might sky-rocket your project... I have programmed a home-made template parser with an associated dynamic template language. The language is called openFTL (open Flexible Template Language) and is currently on it's 3rd version (3.2 beta 2 exactly).
Where it is becoming interesting for you, is the structure of my language and the unique feature of the template parser;
1) Structure: <ftl:tagname arg1="value1" arg2=3 arg3="long string with **$$รนรน%% special chars!">content of the tag</ft:tagname> or <ftl:tagname arg="value" /> Change the namespace, and the parser will recognize and parse all FBML tags.
2) Unique feature: Where all template parsers actually implement their tags the hard way, directly in the parser's code, the FTL parser only implements 4 tags, since their function is to be controlled via PHP with the parser API (loop, onEmptyLoop, section and show). All the other tags are plugins!! You want a new tag name profilepicture? Just create the codeparser_profilepicture() function, move the file in the /plugin/ directory, and the parser will now recognize and parse all <ftl:profilepicture /> tags!
So how can that help you? Take my php class (yeah, it's a single powerful file), change the namespace of the tags (one var to change), and implement all the FBML tags you want by creating numerous plugins.
I found your project by tipping "fbml parser" in google, since I'm planning to launch a similar project.
If you're interested, contact me and I'll send you my parser ;)
http://code.google.com/p/open-fbml/