Re: [SMARTY] Re: crazy thought?
| From: | Andr� Rabold | Date: | Wed, 18 Dec 2002 16:08:38 +0000 |
| Subject: | Re: [SMARTY] Re: crazy thought? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6880@lists.php.net to get a copy of this message | ||
Okay, now I understand... that would be possible I think.
But here's the problem:
How should the Previewer know which PHP file uses the
template you are just editing so your template variables
get assigned? If you don't assign any variable in most
cases the output will have nothing to do with that what
you want ;-)
I have a browser window opened which executes the
PHP script (actually not the browser executes it but my
Apache server). And in a second window I edit my PHP
file or a Smarty template. After a modification I press
reload in the browser and see what happens :-D This
is a kind of Trial-and-Error ;-)
André
"Rasmus Schultz" <m@mindplay.dk> schrieb im Newsbeitrag
news:php.smarty.general-6879@news.php.net...
actually, WYSIWYG is not quite what I meant :) ... what I meant,
basically, was: an editor that showed you the OUTPUT of what you
were editing ... that is, basically a text-editor with highlighting
for Smarty tags, and the option to have a docked browser sitting
in an attached, resizable frame in the editor ... I find myself
constantly switching back and forth between my favourite text
editor (UltraEdit) and a browser window, hitting refresh every
time ... as you say though, Smarty is capable of more than just
HMTL output, so that attached frame could also (optionally of
course) be a plain text display, showing you the outcome of what
you're doing ... maybe there is already a text editor that can
do something like this?? ... UltraEdit has a browser preview
shortcut on an F-key, I think, but I can't use that, since the
browser doesn't know what to do with a php file ...
any thoughts on this? it's not actually THAT crazy, is it?? :)
--- At 2002-12-18, 16:46:00, André Rabold <arabold@nero.com> wrote:
>Yep, crazy is the right word ;-)
>
>Because of Smarty can be used for thousands of things, what do you think
>you should be able to edit via WYSIWYG?
>HTML-Code? Then use something like Dreamweaver which is one of the
>easiers but also a very good WYSIWYG editor. And you can make it
>recognize Smarty tags. But don't ask me about that, I'm still using a
normal
>text editor ;-)
>
>Bye,
>André
>
>
>"Rasmus Schultz" <m@mindplay.dk> schrieb im Newsbeitrag
>news:php.smarty.general-6874@news.php.net...
>> ... a wysiwyg Smarty editor? ... am I thinking crazy here
>> or what? I've been giving it some thought, and it might not
>> be entirely mad - bordering on mad, perhaps, but not entirely.
>>
>> or what do you think?
>>
>>
>>
>
>
>
>--
>Smarty General Mailing List (http://smarty.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php