[Pharo-dev] [ann] dynamic browsers with glamour

Tudor Girba tudor at tudorgirba.com
Mon Aug 26 01:39:39 EDT 2013


Hi,

Here is a little announcement for those that like Glamour.

Andrei and I worked on making Glamour more dynamic by pushing the
presentation definition at execution, rather than at browser construction
time.

To achieve dynamic presentation creation, before you needed to use the
GLMDymamicPresentation. For example, the MooseFinder was built like:

MooseFinder>>compose
   self finder show: [ :a |
      a dynamic
         display: [:each |
            | dynamic |
            dynamic := GLMCompositePresentation new.
            each mooseInterestingEntity mooseFinderPresentationsIn: dynamic.
            dynamic ] ].

Now, the same code becomes:

MooseFinder>>compose
   self finder show: [ :a :each |
      each mooseInterestingEntity mooseFinderPresentationsIn: a ].

You can see more details here:
http://www.humane-assessment.com/blog/building-dynamic-browsers-with-glamour

Cheers,
Doru

-- 
www.tudorgirba.com

"Every thing has its own flow"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20130826/280b0201/attachment-0002.html>


More information about the Pharo-dev mailing list