I was starting to play with "WeatherX" and jesster444 pointed me towards "FeedX" which I like a lot
for the ease of implementation... thanks AppoXX... great snippet!
My problem is with the tpl’s/chunks... all my templates are loaded perfectly as I can see in the debugger
(another great addition!) but only the first chunk gets rendered in the web page, it does not go to the
next ones.
This is the HTML I want to produce... (please ignore the dot and node names, its so I don’t get confused, they are removed on the chunks...)
<div class='weatherwrapper'>
<ul id='weatherloc'>
<li id='locid'>Cuernavaca</li>
<li id='latlon'>LAT [+loc.LAT+] - LON [+loc.LON+]</li>
<li id='elev'>ELEVACIÓN - 1560 m</li>
<li id='loctm'>(Datos de las [+loc.TM+])</li>
</ul>
<dl id='tempinfo'>
<dt id'temp'>[+cc.TMP+] °C</dt>
<dd id='ic_cli'><img src="http://image.weather.com/web/common/wxicons/52/[+cc.ICON+].gif" /></dd>
<dd id='feellk'>Se siente como</dd>
<dd id='flik'>[+cc.FLIK+] °C</dd>
</dl>
<ul id='weatherinfo'>
<li id='wcond'>[+cc.T+]</li>
<li id='hum'>Humedad: [+cc.HMID+]%</li>
<li id='dew'>Temp de Rocío: [+cc.DEWP+] °C%</li>
<li id='vis'>Visibilidad: [+cc.VIS+] Kms</li>
<li id='uv'>Indice UV: [+uv.I+]/16 [+uv.T+]</li>
<li id='wind'>Viento: Del [+wind.T+] a [+wind.S+] Km/H</li>
<li id='press'>Presión: [+bar.R+] hPa [+bar.C+]</li>
</ul>
<ul id='weathertiming'>
<li id='sunr'>Sale el Sol: [+loc.SUNR+]</li>
<li id='suns'>Mete el Sol: [+loc.SUNS+]</li>
<li id='daylf'>Luz Restante: [+loc.SUNS+] - [+loc.TM+]</li>
</ul>
<dl id='mooninfo'>
<dt id'luna'>LUNA</dt>
<dd id='moonph'>[+moon.T+]</dd>
<dd id='ic_moon'><img src="http://image.weather.com/web/common/wxicons/52/[+cc.ICON+].gif" /></dd>
</dl>
</div> <!-- end of weatherwrapper -->
and this is my "chunkanization" of the above...
outer
{{WEATHER->inner}}
inner
{{LOC->loc}}
loc
<div class='weatherwrapper'>
<ul id='weatherloc'>
<li id='locid'>Cuernavaca</li>
<li id='latlon'>LAT [+LAT+] - LON [+LON+]</li>
<li id='elev'>ELEVACIÓN - 1560 m</li>
<li id='loctm'>(Datos de las [+TM+])</li>
</ul>
{{CC->cc}}
<ul id='weathertiming'>
<li id='sunr'>Sale el Sol: [+SUNR+]</li>
<li id='suns'>Mete el Sol: [+SUNS+]</li>
<li id='daylf'>Luz Restante: [+SUNS+] - [+TM+]</li>
</ul>
{{MOON->moon}}
uv
<li id='uv'>Indice UV: [+I+]/16 [+T+]</li>
wind
<li id='wind'>Viento: Del [+T+] a [+S+] Km/H</li>
bar
<li id='press'>Presión: [+R+] hPa [+C+]</li>
cc
<dl id='tempinfo'>
<dt id'temp'>[+TMP+] °C</dt>
<dd id='ic_cli'><img src="http://image.weather.com/web/common/wxicons/52/[+ICON+].gif" /></dd>
<dd id='feellk'>Se siente como</dd>
<dd id='flik'>[+FLIK+] °C</dd>
</dl>
<ul id='weatherinfo'>
<li id='wcond'>[+T+]</li>
<li id='hum'>Humedad: [+HMID+]%</li>
<li id='dew'>Temp de Rocío: [+DEWP+] °C%</li>
<li id='vis'>Visibilidad: [+VIS+] Kms</li>
{{UV->uv}}
{{WIND->wind}}
{{BAR->bar}}
</ul>
moon
<dl id='mooninfo'>
<dt id'luna'>LUNA</dt>
<dd id='moonph'>[+T+]</dd>
<dd id='ic_moon'><img src="http://image.weather.com/web/common/wxicons/52/[+ICON+].gif" /></dd>
</dl>
</div> <!-- end of weatherwrapper -->
as I mentioned, all of them are loaded perfectly but it only goes to the loc chunk,
it never goes to cc or to moon??? I must be doing something really stupid that I do not see...
do I have to create does as chunks instead of templates? I don’t think so my previous attempt with
smaller chunks worked fine using templates...
appreciate the help!