Structuring the HTML output

Hi,

I’ve been working on a project that uses some web .html templates and,
of course, have been using Freeway 5 to create the templates :slight_smile:

I’ve run into a bit of a snag in the .html though that I’m hoping
someone might be able to help me out with. I have a section that in
the HTML source of the published site appears as:

yEntryTitle
yEntryInfo
yEntryData

What I need is:

yEntryTitle
yEntryInfo
yEntryData

Is there some way of getting freeway to put the <p
class="yDataEntry… etc… on its own line without anything
visible? I mean… I can add a return before this section in the
document and all is well, but… then my content is down a bit
further and it doesn’t look quite right.

Mike Yenco
YENCO.COM


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

It’s probably possible using an Action, but not within Freeway by
itself. The function call:

fwAddRawln('');

will insert a blank line within the output of an Action.

As a first step, you could use SourceCodeSnooper to do this. A more
specialized Action could be made that would find all paragraphs and
insert a newline within them as the first character.

Walter

On Mar 29, 2008, at 1:57 PM, Mike Yenco wrote:

Is there some way of getting freeway to put the <p
class="yDataEntry… etc… on its own line without anything
visible? I mean… I can add a return before this section in the
document and all is well, but… then my content is down a bit
further and it doesn’t look quite right.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter,

I think I’ll just write a routine in my app to do this since there is
no easy solution within Freeway itself (I didn’t really expect there
was, but didn’t want to write some code only to find out later that I
could have simply clicked a button somewhere in Freeway that I hadn’t
noticed). That will also help if any other Freeway users decide to
create their own templates as they won’t have to worry about applying
special actions to make things work correctly :slight_smile:

Mike Yenco
YENCO.COM

On Mar 29, 2008, at 2:34 PM, Walter Lee Davis wrote:

It’s probably possible using an Action, but not within Freeway by
itself. The function call:

fwAddRawln(’’);

will insert a blank line within the output of an Action.

As a first step, you could use SourceCodeSnooper to do this. A more
specialized Action could be made that would find all paragraphs and
insert a newline within them as the first character.

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

In the past when trying to debug a page of code, I would manually “nicen” the code in a text editor or an html editor. This of course is lost when the page is republished from Freeway and not really ideal for large projects. There would be benefits from adding comments to Freeway generated structures. Offhand I imagine such commenting could be inserted via Extended markups. I have been successful in adding comments to CSS styles this way.

On Sat, Mar 29, 2008 at 12:08 PM, Mike Yenco wrote:

I think I’ll just write a routine in my app to do this since there is
no easy solution within Freeway itself (I didn’t really expect there
was, but didn’t want to write some code only to find out later that I
could have simply clicked a button somewhere in Freeway that I hadn’t
noticed). That will also help if any other Freeway users decide to
create their own templates as they won’t have to worry about applying
special actions to make things work correctly :slight_smile:


Ernie Simpson – Freeway 5 Pro User – http://www.thebigerns.com/freeway/