Resources in tiles
Illustrates the use of .resx resources in your tiles

The clean tiles tutorial doesn't do anything for globalization. We will add this to sample project. First we will add a .resx file to the project. And make sure it is loaded on start up. We do this in the global.asax.cs. (There are otherways to load a resource file. Those will be discussed later on in this tutorial). The resource files are loaded through the resource locators. So basicly this means embedded tiles, embedded resources. Tiles as content, resources as content. (In non-embedded the .resx doesn't have to compiled; SharpTiles will do that for you.)

global.asax.cs
protected void Application_Start()
{
  RegisterRoutes(RouteTable.Routes);
  ViewEngines.Engines.Clear();
  var engine = new TilesViewEngine();
  ViewEngines.Engines.Add(engine.Init());
  engine.LoadResourceBundle("ResourceBundles.Views.default");
}

This loads the resource as the default resource bundle. We now can use them in the tiles.

Shared/Layout.tile
...
<div id="footer">
  <p>
    <fmt:message key="default_footer"/>
  </p>
</div>
...

Bundles can also be defined from within tiles. They are cached so don't worry about performance. Defining bundles inline is done as follows:

Shared/Layout.tile
...
<fmt:bundle baseName="ResourceBundles.Views.different"> ...Between these tags, the default bundle now overriden by this bundle. </fmt:bundle> ...

Contact form fixed

I regret reporting that the contact form was broken for the last week. All mails send to us were corrupted(empty). So reported bugs in the last week are not received. I'm aware that the timing with regards to the monorail release isn't very handy. The contact form is fixed now. I apologize.

4 February, 2010

Monorail released M5

Monorail is released. The release also contains some minor fixes.

23 January, 2010

Monorail almost finished

Maikel Willemse is coding a Monorail view engine. It's available in the nightly release. A tutorial and a new release will be available shortly.

2 January, 2010

No more tiles.xml
(if you like)

A NSTL view engine is now available. You can do SharpTiles without having a tiles.xml. You will lose the power of dependency injection. If you are interested check out the tutorial page.

21 July, 2009

Developer M3 released

Fixed a couple of parse bugs. Cleaned up refreshing of resources, resource locations and registration of the TilesViewEngine. Wrote some tutorials
Ronald Dehuysser contributed the <tiles:insertTemplate/> and <tiles:putAttribute/> tag.

8 June, 2009

HtmlHelper wrapped II

Updated tag reference documentation.

5 April, 2009

Ready for MVC RC 2

SharpTiles is now ready to use with MVC RC 2.

6 March, 2009

HtmlHelper wrapped

The MVC HtmlHelper is now wrapped and can be used. For it's only available in the nightly build. When the documentation and new Tutorials are made a new release will be made.

22 December, 2008

Ready for Beta 1

SharpTiles is now ready to use with MVC Beta 1. The tutorial page will be updated soon.

3 November, 2008

We've got Tiles

It took me a bit longer than expected but Milestone 1 is reached. Tiles are now available.

23 July, 2008

First release

Finally, after some hard work my pet project is ready for its initial release. Here it is! Please give it some thoughts and feel free to add comments.

23 May, 2008

SID: PopUp 0