templates

Rational Unified Process Alternative for Documentation and Templates?

Is there any free or open alternative to RUP? ...

Are there any good tutorials for using sitemesh in a grails application?

I'm a pretty experienced Grails developer, but most of my experience has been with using grails for serving up JSON/XML to a flex app and some relatively simple HTML websites. I've been diving deeper into using the sitemesh integration in grails and I'm struggling a little to find best practices for some more complex configurations, and...

Can you recommend a .net template engine?

I am looking for a .net templating engine - something simple, lightweight, stable with not too many dependencies. All I need it for at the moment is creating templated plain text and html emails. Can anyone give me a good recommendation? If it helps at all - something like Java's Freemarker or Velocity libraries. [UPDATE] Thanks for ...

Can I create "Solution" level items in a Visual Studio Project Template?

There's a lot of great information on MSDN dealing with creating Visual Studio templates. I've been specifically working through a Multi-Project Solution (http://msdn.microsoft.com/en-us/library/ms185308(VS.80,printer).aspx) I have everything working in my template (4 projects + 2 Solution Folders - 1 for Tests, and 1 for Libraries tha...

wpf listbox change individual items to bold

I want some of the items to be bold depending on a property of an object i'm putting into the listbox. I think you can do it with changing templates but can't seem to find an example. Thanks! ...

Templating Engine to Generate Simple Reports in .NET

I'm looking for a free templating engine to generate simple reports. I want some basic features such as : Ability to Write Loops (with any IEnumerable) Passing Variables Passing Templates Files (main template, footer, header) I'll use this to generate reports in HTML and XML. I'm not looking for a ASP.NET Template Engine. This is fo...

Can the "using" declaration be used with templates?

Is it possible to use the "using" declaration with template base classes? I have read it isn't here but is that because of a technical reason or is it against the C++ standard, and does it apply to gcc or other compilers? If it is not possible, why not? Example code (from the link above): struct A { template<class T> void f(T); };...

Django.contrib.flatpages without models

I have some flatpages with empty content field and their content inside the template (given with template_name field). Why I am using django.contrib.flatpages It allows me to serve (mostly) static pages with minimal URL configuration. I don't have to write views for each of them. Why I don't need the model FlatPage I leave the con...

How can I get a specialized template to use the unspecialized version of a member function?

Consider the following code: template <int dim> struct vec { vec normalize(); }; template <> struct vec<3> { vec cross_product(const vec& second); vec normalize(); }; template <int dim> vec<dim> vec<dim>::normalize() { // code to normalize vector here return *this; } int main() { vec<3> direction; directi...

Why is there "class" in "template <class x>"?

What does the "class" part of a template statement do? Example: template <class T> class Something { public: Something(const T &something); } And what else can go there? I usually only see "class". ...

c++ template instantiation

I have a template class like below. template<int S> class A { private: char string[S]; public: A() { for(int i =0; i<S; i++) { . . } } int MaxLength() { return S; } }; If i instantiate the above class with different values of S, will the compiler create different instances of A() and MaxLent...

How do I resolve: "error C2039: '{ctor}' : is not a member of" in Visual Studio 2005?

I am extending a template class using C++ in Visual Studio 2005. It is giving me an error when I try to extend the template base class with: template <class K, class D> class RedBlackTreeOGL : public RedBlackTree<K, D>::RedBlackTree // Error 1 { public: RedBlackTreeOGL(); ~RedBlackTreeOGL(); and a second error when I try to inst...

WPF: use a ListBox in a template that will be the template of another ListBox

I have a ListBox whose ItemSource is an ObjectDataProvider that is an instance of an ObservableCollection. The ObservableCollection is a collection of ObservableCollections. The ItemTemplate of the ListBox is a DataTemplate that creates a ListBox for each item of the listbox. To illustrate this better I'm trying to recreate a card game i...

Eclipse Custom Variable for Java Code Templates

How do you add a new variable to be inserted into a Java code template. How do I add a variable to the list in Window->Preferences->Java->Code Style->Code Templates->Code->New Java Files->Edit->Insert Variable... ? Currently my new files get created with: ${filecomment} ${package_declaration} ${typecomment} ${type_declaration} I'd li...

Multiple Integer-type classes in C++

I often find myself using Integers to represent values in different "spaces". For example... int arrayIndex; int usersAge; int daysToChristmas; Ideally, I'd like to have separate classes for each of these types "Index","Years" and "Days", which should prevent me accidentally mixing them up. Typedefs are a help from a documnentation pe...

Is partial class template specialization the answer to this design problem?

Say you have a class who's job it is to connect to a remote server. I want to abstract this class to provide two versions, one that connects through UDP and the other through TCP. I want to build the leanest runtime code possible and instead of using polymorphism I am considering templates. Here is what I'm envisioning but I'm not sure i...

phpbb3 cache issues

hi, i have an issue with caching of templates in phpbb3. i have made changes to a template in the admin control panel and saved it, then cleared the template cache through the "purge cache" and i don't see changes reflecting on the forum, but the change WAS saved in the admin control panel. i next edited the template file manually (not t...

Load FreeMarker templates from database

Hi, I would like to store my FreeMarker templates in a database table that looks something like: template_name | template_content --------------------------------- hello |Hello ${user} goodbye |So long ${user} When a request is received for a template with a particular name, this should cause a query to be executed, whi...

How do I export templated classes from a dll without explicit specification?

I have a dll that contains a templated class. Is there a way to export it without explicit specification? ...

Where can I find the official description of Flex html-template and output folder structure?

I'm looking for an official Adobe page explaining the ins and outs of the various directories used in Flex Builder, namely html-template, bin-debug and bin-release. There's a lot happening in these folder: folders get created and deleted, files get copied around automatically, or not, as seems to be the case with AIR apps. I'm looking f...