My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
ProjectPlan  
Updated Feb 4, 2010 by btucker....@gmail.com

thoughts on where this is going

Step #1:

Create up to date, comprehensive XMLSchema definition of FBML

Comment by blackwiz...@gmail.com, Jan 21, 2009

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 ;)

Powered by Google Project Hosting