Jason (squeaky19) wrote in lj_dev,

BML Processing Order Problem

On my LJ site, I've noticed an issue with the way the BML pages are being processed. It seems that the scheme file is being processed right away before the HEAD, BODY, TITLE or other sections in the .bml file. I dont see this problem happening on some other LJ installations but it is definatly happening on mine.

To get more indepth into what I mean. If I have a page that has a need_res section in the BODY section of the code, then in the head section of my site scheme I have my LJ::included_res(); line, the res_includes that the .bml file specified don't get carried up into the head section.

But if the BML file does a large _code section the sends those results as $head $title $body, etc to the HEAD BODY TITLE or whatever sections everything works as expected. In .bml files that are experinecing this, I can prove that the data is getting to LJ::need_res, by running LJ::included_res();

This is a long standing problem and I've finally tracked down the exact symptoms but still don't know the root cause. Now I have seen this behavior on some LJ sites, just not all of them. I am sure it is a configuration error somewhere. Would it be possible to get someone who know the complexities of BML a little bit better than I do to help me look into this as I would love to get this issue resolved.

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 1 comment