﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Newsgator Forums / Technical Support and Requests / TopStyle  / Using TopStyle for MVC application with URL rewriting / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Newsgator Forums</description><link>http://forum.newsgator.com/</link><webMaster>info@newsgator.com</webMaster><lastBuildDate>Sat, 19 Jul 2008 20:39:47 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Using TopStyle for MVC application with URL rewriting</title><link>http://forum.newsgator.com/Topic39548-16-1.aspx</link><description>I'm assuming you've gone here:&lt;P&gt;Options -- Options -- Preview -- Mappings   ?&lt;/P&gt;&lt;P&gt;Also, In the 'Output' Panel where the browser is, there is a 'Customize Preview Files' where you can specify a file, or in your case a URL to preview the css file.&lt;/P&gt;&lt;P&gt;Does this help? </description><pubDate>Sun, 11 May 2008 21:32:51 GMT</pubDate><dc:creator>zurdog</dc:creator></item><item><title>Using TopStyle for MVC application with URL rewriting</title><link>http://forum.newsgator.com/Topic39548-16-1.aspx</link><description>I am considering using TopStyle to develop XHTML/CSS for a PHP MVC application that uses Smarty template views, URL rewriting, and dynamic/static content sepration. There is no single "root folder", but files are in various locations in my project. Also, templates can include other temples, and &lt;link&gt; tags are generated by template macros and don't appear verbatim in the markup. All this should in theory be no obstacle for TopStyle to function properly, yet I can not configure Topstyle to behave the way I want to work in this environment. What I need is the following behavior:&lt;br&gt;&lt;br&gt;1) Map an arbitrary HTML (template) source file to an arbitrary URL, e.g.&lt;br&gt;X:\Dev\www\application\views\pages\main_home.tpl =&gt; http://localhost/&lt;br&gt;X:\Dev\www\application\views\pages\main_search.tpl =&gt; http://localhost/s1?q=ipod&lt;br&gt;X:\Dev\www\application\views\pages\auth_signin.tpl =&gt; http://localhost/l&lt;br&gt;etc.&lt;br&gt;Though this seems trivial, it's apparently not possible. It would even help if I could just force the browser to always show a single fixed URL, but even that seems not to be possible, it apparently must always use the smartypants mapping. Is there a solution to this?&lt;br&gt;&lt;br&gt;2) When I hit refresh (F5), I want my source file to be saved and the embedded browser preview to reload, or, even better, do this as I type, so I can immediately see the effect. Again I cannot configure this, need to manually save, then hit refresh it seems -&gt; tedious.&lt;br&gt;&lt;br&gt;3) Can I just tell TopStyle a list of folders/files where to look for CSS (like DreamWeaver "Design Time")? My CSS files are located in X:\Dev\www\htdocs-static\css and some other folders, and the &lt;link&gt; tags are generated by template macros, so they cannot simply be automagically parsed out of my HTML.&lt;br&gt;&lt;br&gt;4) Can I tell TopStyle to run the W3C validation on the HTML/CSS that comes back from the server (localhost), not my source template?&lt;br&gt;&lt;br&gt;Thanks!&lt;br&gt;Markus</description><pubDate>Sat, 10 May 2008 11:49:07 GMT</pubDate><dc:creator>basilisk</dc:creator></item></channel></rss>