Generate Drupal code from (textfile) specs
At http://drupal.org/project/builder, I have started a module that (currently only) generates a node module from textfile specs. The module uses YAML as its specification language, a simple text format that has become popular as the configuration language for recent MVC frameworks. I believe that exploiting the new APIs in Drupal 6, this approach can be extended to describe a whole Drupal site including installation profiles, views, mappings between taxonomy and menu, theme files etc. The module somewhat contradicts the traditional Drupal way of providing an admin GUI for site configuration. Using text files as input, however, allows me to concentrate on the output side if things. As a benefit, text files can be kept in a code repository. Once the feature set grows richer, maybe the module can even generate its own GUI by creating a set of FAPI data structures. Please, have a look at it and tell me what you think. -- Olav Schettler
Quoting Olav Schettler <olav.schettler@contaire.de>:
Please, have a look at it and tell me what you think.
Why not XML? Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
please lets not have a pointless format war. this is the least interesting aspect of olav's fine proposal. On 10/29/07, Earnie Boyd <earnie@users.sourceforge.net> wrote:
Quoting Olav Schettler <olav.schettler@contaire.de>:
Please, have a look at it and tell me what you think.
Why not XML?
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
Quoting Moshe Weitzman <weitzman@tejasa.com>:
please lets not have a pointless format war. this is the least interesting aspect of olav's fine proposal.
No war intended and my question is still valid. We already deal with XML so why add YADF to deal with? XML is handled natively (at least with PHP 5) while YAML isn't. Olav's proposal is fine indeed; the methods need hashed since his proposal may one day become the recommended way to do things. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
Please reflect upon http://www.bikeshed.com/. It is pays homage to the greatest list email ever sent. On 10/29/07, Earnie Boyd <earnie@users.sourceforge.net> wrote:
Quoting Moshe Weitzman <weitzman@tejasa.com>:
please lets not have a pointless format war. this is the least interesting aspect of olav's fine proposal.
No war intended and my question is still valid. We already deal with XML so why add YADF to deal with? XML is handled natively (at least with PHP 5) while YAML isn't. Olav's proposal is fine indeed; the methods need hashed since his proposal may one day become the recommended way to do things.
Quoting Moshe Weitzman <weitzman@tejasa.com>:
Please reflect upon http://www.bikeshed.com/. It is pays homage to the greatest list email ever sent.
You seem to be infatuated by the packaging to see what is inside. Beyond that, opinions were asked for and my liking of color is different than yours. I gave my opinion, I think the idea is great; but, I think the implementation should be XML because it is a standard that PHP understands without having to include another library or without creating other methods to parse the data via PHP or Drupal. Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
LOL, that's priceless. Moshe Weitzman wrote:
Please reflect upon http://www.bikeshed.com/. It is pays homage to the greatest list email ever sent.
On 10/29/07, Earnie Boyd <earnie@users.sourceforge.net> wrote:
Quoting Moshe Weitzman <weitzman@tejasa.com>:
please lets not have a pointless format war. this is the least interesting aspect of olav's fine proposal.
No war intended and my question is still valid. We already deal with XML so why add YADF to deal with? XML is handled natively (at least with PHP 5) while YAML isn't. Olav's proposal is fine indeed; the methods need hashed since his proposal may one day become the recommended way to do things.
-- Sean Robertson Web Developer NGP Software, Inc. seanr@ngpsoftware.com (202) 686-9330 http://www.ngpsoftware.com
participants (4)
-
Earnie Boyd -
Moshe Weitzman -
Olav Schettler -
Sean Robertson