Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
radiant-layouts-extension
Advanced tools
Merges share_layouts and nested_layouts, making the whole layout adventure a lot more enjoyable
Allows Rails controllers/actions to use Radiant layouts as their "layout". content_for blocks are mapped to page parts, with the exception of :title and :breadcrumbs, which map to their specific default tags. The default content, or @content_for_layout, is mapped to the 'body' part.
SomeController < SiteController
radiant_layout 'Layout name'
# or
radiant_layout { |controller| c.action_name == "index" ? "main" : "alt" }
# and
def delete
@radiant_layout = 'delete'
end
end
radiant_layout takes the same options as the built-in layout. To specifically override the Radiant layout and use a standard Rails one use :layout => "mine", or :layout => false for no layout, as options to render.
To choose a different Radiant layout, set the @radiant_layout instance variable to the name of a Radiant layout in your controller or view.
Merged into radiant-layouts-extension, Dirk Kelly, August 2010
Updated to work with 0.8 RC1 by: Johannes Fahrenkrug (http://springenwerk.com), May 22, 2009
Created by: Sean Cribbs (seancribbs AT gmail DOT com), September 20, 2007
Thanks to John Long for clarifying and simplifying the process for me!
Thanks to xtoddx for improving the tests and support for tags that use the request and response.
Thanks to Digital Pulp, Inc. for funding the initial development of this extension as part of the Redken.com project.
Nested Layouts enables reuse of a top-level "master" layout (one that contains your tags and the overall structure/wrapper of your site) for several different "nested" layouts (i.e. a one-column layout and a two-column layout). Keep your layouts DRY!
A simple example is of the following wrapper and page layout
<!-- Application Layout -->
<!html>
<body class="<r:layout />">
<r:content_for_layout />
</body>
</html>
<!-- Page Layout -->
<r:inside_layout name='Application'>
<h1>Hi</h1>
</r:inside_layout>
This would render the following if Page Layout was called
<!html>
<body class="<r:layout />">
<h1>Hi</h1>
</body>
</html>
Write your layouts and radius tags in haml, with support for nested layouts and radius attributes
// Parent Layout - with content/type set as 'haml'
%div{:id=>"parent",:title=>"<r:title />"}
%r:content_for_layout
// Child Layout - with content/type set as 'haml'
%r:inside_layout{:name=>"Parent"}
%h2
%:title
<div id="parent" title="some title">
<h2>
some title
</h2>
</div>
Integrates the work of SaturnFlyer creating a haml_filter on pages and snippets. Additional task involved.
changing the order which objects with this type are renders. The content is turned into html before the radius tags are passed.
FAQs
Unknown package
We found that radiant-layouts-extension demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.