similar to: Newbie question: XML Templates

Displaying 20 results from an estimated 30000 matches similar to: "Newbie question: XML Templates"

2011 Jul 21
0
Templates and self-knowledge
So, I''m into templating. I *like* templating. What I *don''t* like, of course, is to have to use multiple, similar templates for different output files. So, let''s work a concrete example. Suppose I have a template "standard_profile.erb" which looks like this: install_type initial_install > > system_type standalone > > partitioning
2006 Jun 17
2
RJS templates - newbie
I am trying to test drive RJS templates in Rails 1.2. Here is what I did: create table categories (name varchar(255) ); rails RJSTest cd RJSTest rake update_javascripts script/generate controller home index add script/generate model category Note: When I did a rake update_javascripts, I did not see any output. I configured database.yml to talk to mysql. Next I wrote
2007 Apr 10
0
Change in default xml, rjs respond_to templates that Rails looks for on edge Rails
Not sure if this is the right avenue to discuss this but I couldn''t find anywhere to ask this question on Rails Trac. Regarding this latest changeset: http://dev.rubyonrails.org/changeset/6507 (Change default respond_to templates for xml and rjs formats.) Does anyone know the rationale behind it? I can imagine there would be an announcement in the future about this backward
2007 Sep 04
5
Xml templates...
I was looking in using an xml_builder template to do something like: blee.xerb xml.blees do <% for blee in @blees %> xml.blee = blee.name <% end %> end It looks like the xml_builder template can''t expand the erb tag. It this not the correct way to expand and xml template ? Thanks ! -------------- next part -------------- An HTML attachment was scrubbed... URL:
2017 Aug 18
0
Re: [PATCH] builder: templates: debian: use single-partition layout
On Tue, Aug 15, 2017 at 12:06:09AM +0200, Florian Klink wrote: > The previously selected 'atomic' recipe resulted in 2GB swap in a 6GB > volume. Also, we don't really need the boot partition, so just create a > partition using the whole disk space. > --- > builder/templates/debian.preseed | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) >
2012 May 07
1
Sprockets, JST, Eco and escaping
While it was a good move from Rails part to escape ERB <%= %> tags by default, it doesn''t seem to happen to Sprockets as well. The strange bit is that according to Sprockets documentation, it would be just a matter of naming your template as .jst.eco to enable Eco: https://github.com/sstephenson/sprockets#javascript-templating-with-ejs-and-eco Then, extracted from Eco
2006 Apr 26
0
[LLVMdev] Re: Newbie questions
On Wed, 2006-04-26 at 16:32 -0500, Chris Lattner wrote: > I still don't follow. Having annotations on the IR is *exactly* > equivalant to having a map from IR objects to the things you want to > annotate them with. > > Why isn't this just as acceptable (and problematic) as annotations? Because LLVM doesn't store that map, someone else has to. Furthermore, LLVM
2005 Dec 28
3
[Templates] [Noob] templates across controllers?
Fine Rails Hackers: I am trying to decide how to approach a templating concern. I would like to define a standard template for all of my pages (including a basic header, styles, footer) across my five base controllers: desktop, events, financials, and records, account. Is there a top level place to declare a template across the entire application regardless of the controller? I understand how
2009 May 20
1
templating language questions
Hello, I''m experimenting with a xhtml templating language and have some questions about ActionPack, particularly to do with compilable templates. I''m mostly looking for further information about compilable templates. The templating language currently works, though it isn''t a compilable template handler. I''ve yet to benchmark it, but it seems to be running
2011 Mar 23
0
[LLVMdev] Reversing a function's CFG?
Forgot to CC the list. On Wed, Mar 23, 2011 at 12:51 PM, Joshua Warner <joshuawarner32 at gmail.com>wrote: > >> In large-scale parallel simulations, sometimes you process an event >> speculatively. If it turns out you should not have processed that event >> (and such situations can be detected by our system), you need to undo all of >> the changes you made in
2006 Sep 01
5
templates and require
Thanks everyone for your quick responses to my questions. I''m trying to get templates working. I want to pull the template down from the puppet server, then use it. It looks like the require parameter is not being enforced when using the content parameter so the template can''t be found. This doesn''t work: file { "/etc/lighttpd/lighttpd.conf" :
2006 May 24
6
newbie question: missing template
Hi I''m new to this forum and new to Rails so excuse me if this is a daft question. I''m following the ONLamp.com tuturial and all has been well untill changing the template for the recipes. I have followed the instructions and added this code to the controller: class RecipeController < ApplicationController scaffold :recipe def list @recipes = Recipe.find_all end
2006 Apr 17
2
newbie before_filter question
I''ve successfully gotten acts_as_authenticated working. Currently the before_filter line for my admin screen is like this: class AdminController < ApplicationController include AuthenticatedSystem before_filter :login_required Only issue I have now is that anyone logged in can access that screen. I''d like to differentiate between a regular user and
2023 May 16
0
Newbie: Controlling legends in graphs
Rui, thanks so much for your help. Your explanation and example were clear and concise. Thanks for taking the time and effort to help me. -Kevin On 5/12/23 16:06, Rui Barradas wrote: > ?s 14:24 de 12/05/2023, Kevin Zembower via R-help escreveu: >> Hello, I'm trying to create a line graph with a legend, but have no >> success controlling the legend. Since nothing I've
2006 May 13
1
Ruby on Rails on Microtemplates
Hi Rails folks, I''ve been giving some thought on how something I''ve been calling "microtemplates" (http://microtemplates.org) might relate to Rails. Briefly, microtemplates are a way of specifying HTML templates that is inspired by microformats. For example, data like this: {vcard:{fn:"Steve Farrell",url:"http://smackman.com"}} could be bound
2010 Aug 06
0
adding options to erb scaffold generator to include or skip custom views / templates
created a small patch.. looking for feedback / etc.. https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/5319-adding-options-to-erb-scaffold-generator-to-include-or-skip-custom-views-templates#ticket-5319-2 When I was working on customizing the erb scaffold generator to match the style and design I wanted to use by creating custom templates in / lib/templates/erb/scaffold I found
2011 Mar 24
0
[LLVMdev] Reversing a function's CFG?
This is in reply to the posting below. I am not a compiler writer type, so I am probably in over my head a bit. Several years ago I was a bit interested in something called code slicers. An example of one (probably no longer supported) is UNRAVEL (http://www.itl.nist.gov/div897/sqg/unravel/unravel.html ) Their basic idea is to identify the algorithm which serves to determine the value of
2006 Jun 25
1
text_field_with_auto_complete nonsense (newbie question)
Hi everyone, I have been introduced to ruby on rails a couple of days ago and it really brings out the fun in programming for the Web. I''m trying to implement a text_field_with_auto_complete as described in script.aculo.us , as follows: controller: class SearchController < ApplicationController auto_complete_for :recipe, :name end search.rhtml: <html> <head><%=
2007 Nov 09
4
variables in templates
Here''s the problem I''m trying to solve. I use apache, for lots of things, some of those things are configured from a performance standpoint differently. In less vague terms I need to be able to change the MaxClients setting to different things based on the different purposes apache serves. (say proxy vs. app) Under previous CMS/templating engines I would have a httpd.conf that
2020 Feb 05
4
[RFC] IRBuilder polymorphism: Templates/virtual
Hi, The IRBuilder is currently templated over a constant folder, and an instruction inserter. https://reviews.llvm.org/D73835 proposes to move this towards using virtual dispatch instead. As this is a larger design change, I would like to get some feedback on this. The current templated design of IRBuilder has a couple of problems: 1. It's not possible to share code between use-sites that